B
bwv871
Hello. In the form below I have two drop down menus; the customer selects a
recipient and then selects a subject. I would like to change the way this
works so that if the customer selects "information" in the first menu, for
example, then only two options (information and returns) are available in
the second drop down menu; selecting "sales" in the first menu would make
only "products" and "models" available in the second drop down menu, etc. I
am a complete beginner and would appreciate any modifications to the html
below that would make this new functionality possible.
Thank you.
<html>
<head>
<title>Contact us</title>
</head>
<body>
<p>Please use the form below to send us an email. Choose an addressee from
the drop down list.
<form name=form action=cgi-bin/formmail22.pl onSubmit="submitonce(this)"
method=post>
<table cellpadding="0" bgcolor="#ffffff">
<tr><td><h4>Name:</td><td>
<input type="text" name="realname">
</td></tr>
<tr><td align="left"><h4><b>Email:</b></td><td>
<input type="text" name="email"></td></tr>
<tr>
<td align="left">
<h4><b>To:</b></td>
<td>
<select name="recipient">
<OPTION value='' >Please select...</OPTION>
<option value='(e-mail address removed)' >Information</option>
<option value='(e-mail address removed)'>Sales</option>
<option value='(e-mail address removed)' >Advertising</option>
<option value='(e-mail address removed)'>Webmaster</option>
</td></tr>
<tr>
<td align="left"><h4><b>Subject:</b></td><td>
<select name="subject">
<OPTION value="" >Please select...</OPTION>
<option value="information" >General Information</option>
<option value="returns">Returns policy</option>
<option value="products">Products</option>
<option value="models">Models</option>
<option value="rates">Ad rates</option>
<option value="criteria">Ad criteria</option>
<option value="problem">Report a problem</option>
<option value="Other">Other</option>
</select>
</td>
</tr><tr>
<td><h4>Message:</td></tr><tr><td colspan="5">
<textarea name="message" rows="9" cols="60">
</textarea>
</td></tr>
<tr><td align="center" colspan="2">
<input type='hidden' name='recipient' value='(e-mail address removed),
(e-mail address removed), (e-mail address removed), (e-mail address removed)'>
<input type="hidden" name="redirect" value="http://foo.com/thanks.html">
<input type="hidden" name="required" value="email,message">
<input type="hidden" name="env_report" value="REMOTE_HOST, HTTP_USER_AGENT">
<input type="hidden" name="print_config" value="email,subject">
<input type="hidden" name="print_blank_fields" value="1">
<input type="hidden" name="title" value="Email Confirmation">
<input type="hidden" name="return_link_url"
value="http://foo.com/thanks.html">
<input type="hidden" name="return_link_title" value="">
<input type="hidden" name="background" value="">
<input type="hidden" name="bgcolor" value="">
<input type="hidden" name="text_color" value="">
<input type="hidden" name="link_color" value="">
<input type="hidden" name="vlink_color" value="">
<input type="hidden" name="alink_color" value="">
<br><INPUT class="submit" type=submit value="Send Message">
<input type="reset" value="Reset"></form>
</p>
</div>
</p>
</td></tr>
</table></h6></p>
</SELECT></FORM>
</body>
</html>
recipient and then selects a subject. I would like to change the way this
works so that if the customer selects "information" in the first menu, for
example, then only two options (information and returns) are available in
the second drop down menu; selecting "sales" in the first menu would make
only "products" and "models" available in the second drop down menu, etc. I
am a complete beginner and would appreciate any modifications to the html
below that would make this new functionality possible.
Thank you.
<html>
<head>
<title>Contact us</title>
</head>
<body>
<p>Please use the form below to send us an email. Choose an addressee from
the drop down list.
<form name=form action=cgi-bin/formmail22.pl onSubmit="submitonce(this)"
method=post>
<table cellpadding="0" bgcolor="#ffffff">
<tr><td><h4>Name:</td><td>
<input type="text" name="realname">
</td></tr>
<tr><td align="left"><h4><b>Email:</b></td><td>
<input type="text" name="email"></td></tr>
<tr>
<td align="left">
<h4><b>To:</b></td>
<td>
<select name="recipient">
<OPTION value='' >Please select...</OPTION>
<option value='(e-mail address removed)' >Information</option>
<option value='(e-mail address removed)'>Sales</option>
<option value='(e-mail address removed)' >Advertising</option>
<option value='(e-mail address removed)'>Webmaster</option>
</td></tr>
<tr>
<td align="left"><h4><b>Subject:</b></td><td>
<select name="subject">
<OPTION value="" >Please select...</OPTION>
<option value="information" >General Information</option>
<option value="returns">Returns policy</option>
<option value="products">Products</option>
<option value="models">Models</option>
<option value="rates">Ad rates</option>
<option value="criteria">Ad criteria</option>
<option value="problem">Report a problem</option>
<option value="Other">Other</option>
</select>
</td>
</tr><tr>
<td><h4>Message:</td></tr><tr><td colspan="5">
<textarea name="message" rows="9" cols="60">
</textarea>
</td></tr>
<tr><td align="center" colspan="2">
<input type='hidden' name='recipient' value='(e-mail address removed),
(e-mail address removed), (e-mail address removed), (e-mail address removed)'>
<input type="hidden" name="redirect" value="http://foo.com/thanks.html">
<input type="hidden" name="required" value="email,message">
<input type="hidden" name="env_report" value="REMOTE_HOST, HTTP_USER_AGENT">
<input type="hidden" name="print_config" value="email,subject">
<input type="hidden" name="print_blank_fields" value="1">
<input type="hidden" name="title" value="Email Confirmation">
<input type="hidden" name="return_link_url"
value="http://foo.com/thanks.html">
<input type="hidden" name="return_link_title" value="">
<input type="hidden" name="background" value="">
<input type="hidden" name="bgcolor" value="">
<input type="hidden" name="text_color" value="">
<input type="hidden" name="link_color" value="">
<input type="hidden" name="vlink_color" value="">
<input type="hidden" name="alink_color" value="">
<br><INPUT class="submit" type=submit value="Send Message">
<input type="reset" value="Reset"></form>
</p>
</div>
</p>
</td></tr>
</table></h6></p>
</SELECT></FORM>
</body>
</html>