DanFTW Posted April 4, 2008 Share Posted April 4, 2008 Is there such a thing as a PHP for handler for a Drop-Down menu in html? If so can somebody give me an example/ help me make one? Thanks in advance!!! Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/ Share on other sites More sharing options...
DanFTW Posted April 4, 2008 Author Share Posted April 4, 2008 Might also need help with the HTML form, who knows, might be doing something wrong there. Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509666 Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 help? Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509688 Share on other sites More sharing options...
Northern Flame Posted April 5, 2008 Share Posted April 5, 2008 what exactly do you mean? you want to show the value of a <select></select> on your form? Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509690 Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 I want to know how to set up my form handler on the PHP script to get it to work, i'm pretty sure I know the html part. ex. do I go <?PHP echo "blahblahblah " . "$whathere??? '' . "blahahahaha" ?> yeah anyways. Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509709 Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 Mostly what i'm asking is how to handle an html drop-down menu where the action is being sent to a PHP page. Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509714 Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 . Still need help Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509716 Share on other sites More sharing options...
AndyB Posted April 5, 2008 Share Posted April 5, 2008 I'm not sure you've explained what it is you're trying to do, but I'll take a guess. You have a form with a select named wombat and when the form data are sent to form-handler.php you want to display the selected value of the variable named wombat. Assuming your form method is post ... <?php // form-handler.php $wombat = $_POST['wombat']; // retrieved POSTed data echo "You chose ". $wombat; // display chosen value ?> Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509717 Share on other sites More sharing options...
AndyB Posted April 5, 2008 Share Posted April 5, 2008 . Still need help Calm down. Wait for people to respond instead of bumping your thread every few minutes. Some of us have lives outside this forum Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509718 Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 Hey Andy, can you post in html the form that that form handler would handle ??? ? lol sorry bad explanation. But yeah that's what I want. Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509721 Share on other sites More sharing options...
AndyB Posted April 5, 2008 Share Posted April 5, 2008 <html><body> <form action="form-handler.php" method="post"> Pick a thing <select name="wombat"> <option value="apple">apple</option> <option value="pear">pear</option> </select> <input type="submit" value="go"/> </form> </body></html> Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509723 Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 got it ty andy Link to comment https://forums.phpfreaks.com/topic/99628-drop-down-menu-php-form-handler/#findComment-509725 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.