Posted by Martin Jay on 06/10/06 01:52
In message <1149895170.942407.154790@j55g2000cwa.googlegroups.com>,
tracy.cooperjr@gmail.com writes
>Is it possible to have a form that can be sent to 1 of 3 different
>addresses depending on which selection from a drop-down they have
>selected.
>
>Example:
>A user fills out a survey and then can select one of three recipients
>of that survey and it will be sent to only that one person and not the
>other two as well.
Yes, that's possible. But it has to be done by a script on your server.
In your HTML form you'd have something like this to create the drop-down
box:
<select name="email">
<option value="1">Email address 1</option>
<option value="2">Email address 2</option>
<option value="3">Email address 3</option>
</select>
And then in the script that receives the form you would use logic such
as like:
if name = 1 then email form to 1@spam-free.org.uk
if name = 2 then email form to 2@spam-free.org.uk
if name = 3 then email form to 3@spam-free.org.uk
--
Martin Jay
Phone/SMS: +44 7740 191877
Fax: +44 870 915 2124
[Back to original message]
|