From: susanring on
How do you email a message depending on a value is selected from a dropdown?

Thanks


Here is an exmaple.

if it is apple then email apple(a)apple.com
a message
subject: Apple ordered.
the message: you ordered an apple.

sort of like when you proceed to checkout in amazon. then an email
confirmation is sent tou you?

here is the example of the dropdown.

Apple
or
Oranges
or
Peaches

<FORM METHOD="POST" ACTION="nextpage.cfm">
<SELECT SIZE="1" NAME="Fruits">
<OPTION>Select an item</OPTION>
<OPTION VALUE="apples">Apples</OPTION>
<OPTION VALUE="oranges">Oranges</OPTION>
<OPTION VALUE="peaches">Peaches</OPTION>
</SELECT>
<INPUT TYPE="submit" VALUE="Submit Fruit">
</FORM>

From: GArlington on
On Apr 12, 9:45 pm, "susanring" <webforumsu...(a)macromedia.com> wrote:
> How do you email a message depending on a value is selected from a dropdown?
>
> Thanks
>
> Here is an exmaple.
>
> if it is apple then email ap...(a)apple.com
> a message
> subject: Apple ordered.
> the message: you ordered an apple.
>
> sort of like when you proceed to checkout in amazon. then an email
> confirmation is sent tou you?
>
> here is the example of the dropdown.
>
> Apple
> or
> Oranges
> or
> Peaches
>
> <FORM METHOD="POST" ACTION="nextpage.cfm">
> <SELECT SIZE="1" NAME="Fruits">
> <OPTION>Select an item</OPTION>
> <OPTION VALUE="apples">Apples</OPTION>
> <OPTION VALUE="oranges">Oranges</OPTION>
> <OPTION VALUE="peaches">Peaches</OPTION>
> </SELECT>
> <INPUT TYPE="submit" VALUE="Submit Fruit">
> </FORM>

Try <cfdump var="#form#" /> in your nextpage.cfm, it may give you a
few clues...