form sent different places
I'm building a site at the moment that requires a contact/sales enquiry form to be completed and then sent to one of 4 email addresses depending on an option chosen from a drop down menu. How do I do this??
Julia - if life was meant to be easy Michael Angelo would have painted the floor....
Suzanne posted this at 08:13 — 11th April 2002.
She has: 5,507 posts
Joined: Feb 2000
If the user knows where it's to go, use a select field.
If the user doesn't know, then in your form processor, have a conditional statement to send the email to x if field is this, y if field is this other, yada yada.
The Webmistress posted this at 08:17 — 11th April 2002.
She has: 5,586 posts
Joined: Feb 2001
The user will just select a part of the world they are in, not decide who to contact and depending on which of the 4 zones is chosen the form will have to go to one of the email addresses. If I'm using a basic formmail script then where do I put the 'conditional statement to send the email to x if field is this, y if field is this other'??
Julia - if life was meant to be easy Michael Angelo would have painted the floor....
dk01 posted this at 20:12 — 11th April 2002.
He has: 516 posts
Joined: Mar 2002
I would use the following:
North America
South America
Europe
Asia
Depending on the formmail script you are using you may have to change the name of the select to the feild that is used for the recipient. This way you won't have to write any javascript or anything. Hope it helps!
-dk
Suzanne posted this at 20:24 — 11th April 2002.
She has: 5,507 posts
Joined: Feb 2000
Perfect solution! Nice one!
name="recipient" for those options if you're using formmail.
The Webmistress posted this at 07:24 — 12th April 2002.
She has: 5,586 posts
Joined: Feb 2001
Thanks I'll try that
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.