caynada
12-30-2003, 07:47 AM
I have a very simple php email form, just text input fields. But now I'd like to add a drop down list. How do I go about this? Naming the list in the HTML file? php code?
|
Click to See Complete Forum and Search --> : PHP email form w/drop down selections caynada 12-30-2003, 07:47 AM I have a very simple php email form, just text input fields. But now I'd like to add a drop down list. How do I go about this? Naming the list in the HTML file? php code? pyro 12-30-2003, 07:53 AM Take a look at http://www.webdevfaqs.com/php.php#mailer - it loops through the entire $_POST array, making it very easy on you. ;) caynada 12-30-2003, 08:01 AM Thanks for the link. Do you know if that server is having any problems? I can not seem to access it, keep getting server can not be found message. pyro 12-30-2003, 08:05 AM Yes, right now my server is down. Should (hopefully...better be... grrr... :o) be back up soon. caynada 12-30-2003, 08:10 AM Thanks very much for your help. I'll check on that link later on today. Best of luck with getting your server back up. pyro 12-30-2003, 08:20 AM Ok, sounds like a plan... It's actually just playing the waiting game, as the server is just a shared server. Just checked up on it, and apparently there is a network attack taking place... Hopefully it won't be down too long. caynada 12-30-2003, 09:31 AM Your server is back up and running, I like the site! Bare with me cause I'm new to PHP, but I can't seem to find the info about arrays. If I have a drop down with three selections ( a,b & c) how do I write the PHP code to display the viewers choice? pyro 12-30-2003, 10:13 AM Unless they can select multiple items out of the drop down, you just do it like this: echo $_POST['name_of_dropdown']; caynada 12-30-2003, 10:17 AM Yeah, they will only be able to select one item. Thanks very much for that, you've been a big help! pyro 12-30-2003, 10:18 AM You are very welcome. :) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |