Forum Moderators: coopster

Message Too Old, No Replies

sending mail depending on selection

         

ianb

10:49 am on May 4, 2005 (gmt 0)

10+ Year Member



i'm currently writing a form to add to a site. can anyone tell me if it is possible to send mail to different addresses depending on a selection in a drop down box.

e.g. if "hardware" is selected then send a mail to hardare@....

thanks

anshul

11:29 am on May 4, 2005 (gmt 0)

10+ Year Member



Yes. Set something like $to=$_POST[$email_value] i.e., set 'To' according to data posted from HTML FORM; please see PHP mail()