Choose from a list of email recipients

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kukur
Forum Newbie
Posts: 10
Joined: Thu Feb 12, 2004 12:24 pm

Choose from a list of email recipients

Post by kukur »

I have a simple php form that sends the form results to:

$recipient="myemail@internet.com"

What I would like to do is make a list in the form that has multiple department's emails:

Sales (sales@internet.com)
Parts (parts@internet.com)
Help (help@internet.com)

How would I go about getting the form to place the email the user chooses into the $recipient value?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

You will need to submit the form to a page that receives the variables.

Everything else is covered with viewtopic.php?t=511
kukur
Forum Newbie
Posts: 10
Joined: Thu Feb 12, 2004 12:24 pm

Post by kukur »

Thanks Patrik,

That was the nudge I needed.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

:)

/nudge
Post Reply