NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page Drop Down Boxes In Forms...

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search
10 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Closed Thread
 
LinkBack Thread Tools
Old 04-19-2004, 05:44 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Apr 2004
Location: South East UK
Posts: 10
martyn187 is an unknown quantity at this point
 



Smile Drop Down Boxes In Forms...


Hi,

I am looking for a way, where selecting a different option from a drop down box, will mean that the form is sent to a different e-mail address.

At the moment, it is an html form, sent using a PHP file at the following URL http://www.uckfieldfm.co.uk/contact/index.htm

Any suggestions or ideas welcome, or do those 2 words both mean the same thing ????
martyn187 is offline  
Old 04-19-2004, 05:56 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
<select name="address">
<option value="email@email.com">email@email.com</option>
<option value="email@bob.com">email@bob.com</option>
????: NamePros.com http://www.namepros.com/web-design-discussion/27651-drop-down-boxes-in-forms.html
<option value="email@123.com">email@123.com</option>
</select>

have your menu set out like this

then in your php file

you need to post it so add this near the top of your page

$email = $_POST['address'];

you then need to edit your mail function in the php code

should look something similar to this
mail($email,$subject,$message);

on the first section of the mail function (anything after the ( but before the first ,)

change that to $email

it then should work

or if you want to evade any risk of spam bots you could use an array
adam_uk is offline  
Old 04-19-2004, 06:01 AM THREAD STARTER               #3 (permalink)
New Member
Join Date: Apr 2004
Location: South East UK
Posts: 10
martyn187 is an unknown quantity at this point
 



I'll give that a try, thanks Adam you're a star!
martyn187 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:45 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger