• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

drop down and depending on the selection a email is sent

Community Beginner ,
Apr 12, 2008 Apr 12, 2008

Copy link to clipboard

Copied

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>
TOPICS
Advanced techniques

Views

230

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Apr 14, 2008 Apr 14, 2008
On the action page:

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

Votes

Translate

Translate
Contributor ,
Apr 14, 2008 Apr 14, 2008

Copy link to clipboard

Copied

LATEST
On the action page:

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation