send email when condition it met

Giganews Newsgroups
Subject: send email when condition it met
Posted by:  canajiā€¦@gmail.com (canaji…@gmail.com)
Date: Tue, 18 Mar 2008

I have a form that stores information in a table, but I also need it
to send an email when a specific question, among the many, is answered
with no

the question is a simple drop box:

<select name="safe_access">
<option value="0"></option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>

and the javascript validation is:

//safe_access
if ( form.safe_access.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_access.focus();
return false;
}

how do I get it to send an email, and still store information in the
table when someone answers no?

I've done several searches, but they all keep bringing up how to email
the form instead of what I am looking for.

Thanks

Replies