Hi - new to ASP...
I have a form with a dropdown list. Based on what option is selected I want the form to be send to different email addresses.
Sample code I have is:
<p>Gender: <br>
<select name="gender">
<option selected value="">Choose....</option>
<option name="gender" value="male">Male</option>
<option name="gender" value="female">Female</option>
</select>
<%
if request.form ("gender") = ("male") then
%>
<input type="submit" value="Submit" name="btnSubmit" onClick="document.form1.action='send_it.asp'">
<%
else
%>
<input type="submit" value="Submit" name="btnSubmit" onClick="document.form1.action='send_it_female.asp'">
<%
end if
%>
When I test this, the code always goes to the "else" statement.
Any help would be much appreciated!