Skip to main content
Known Participant
April 12, 2008
Answered

drop down and depending on the selection a email is sent

  • April 12, 2008
  • 1 reply
  • 300 views
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@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>
This topic has been closed for replies.
Correct answer davidsimms
On the action page:

<cfif FORM.Fruits EQ "apples">
Send email
</cfif>

1 reply

davidsimms
davidsimmsCorrect answer
Inspiring
April 14, 2008
On the action page:

<cfif FORM.Fruits EQ "apples">
Send email
</cfif>