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!!! Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 help? Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 . Still need help Quote Link to comment 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 ?> Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
DanFTW Posted April 5, 2008 Author Share Posted April 5, 2008 got it ty andy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.