Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stumped!!

Status
Not open for further replies.

benzito

ISP
Jan 8, 2002
144
US
How would I make a drop-down menu form element determine who a email will be routed to once the "Submit" button has been clicked?

Page to include a drop down menu to select product, text box for cust to enter additional comments, and a submit button. The form will need to be sent to different departments (email addresses) depending on what product is selected from the drop down box.

Is it possible to make the drop-menu menu element determine who the email will be routed to once the "Submit" button has been clicked?

Drop down menu selection Result
-----------------------------------------------------------
If product = a then send email to x@x.net
If product = b then send email to y@y.net

thx in advance,

benzito
 
please read,
prompt> perldoc CGI -enter-

search for 'scrolling_list' 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Are you using a cgi program to send the email, or just a mailto link? If you're just using a mailto link, you can change the form action using:
Code:
document.formname.action = "mailto:...";
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top