PDA

View Full Version : Form with menu for multiple recipients



ikearns
07-09-2005, 06:27 PM
Hi there,

Can anyone lend a hand.... I am trying to put a form together that depending on the value in a drop down box will determine which recipient the form goes to

For instance the menu could read:
sales>sales@home.com
admin>admin@home.com
tech>tech@home.com

so depending on which option is chosen will depend on which email address the form goes to??

Twey
07-09-2005, 09:49 PM
I don't know ASP, so I'll have to speak in generalities here.
The form goes something like this:

<form action="send.asp" method="post">
<select name="to">
<option value="sales@home.com">Sales</option>
<option value="admin@home.com">Admin</option>
<option value="tech@home.com">Tech</option>
</select>
<input type="submit" value="Send"/>
</form>
... then the content of the POST variable to is the address to send to. You'll want to add some checking that the email is one of the options, too, or someone could use your site to mailbomb innocent people.