bishop2001 Posted June 11, 2014 Share Posted June 11, 2014 Greetings, how can i capture the choice that a user has selected from my drop down menu: <form name="jumpp"> <select name="menu"> <option selected disabled hidden value=''></option>" <option value="NewYork">New York</option> <option value="London">London</option> </select> </form> i tried the following with no luck. Welcome <?php echo $_POST["menu"]; ?> thanks Quote Link to comment https://forums.phpfreaks.com/topic/289123-php-capture-choice-dropdown/ Share on other sites More sharing options...
Barand Posted June 11, 2014 Share Posted June 11, 2014 1. You need to "submit" the form to send the data to the server. 2. Unless you specify "post" as the form's method it will default to "get" so you would need to use $_GET instead of $_POST Quote Link to comment https://forums.phpfreaks.com/topic/289123-php-capture-choice-dropdown/#findComment-1482510 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.