networkthis Posted September 12, 2008 Share Posted September 12, 2008 How do you get the selected value of a select box/drop menu? I'm trying to simply get the value of the select box upon hitting the submit button. <?php <select name=select box> <option value=\"$value\" >$value </select> ?> Link to comment https://forums.phpfreaks.com/topic/123870-select-box-drop-down-menu/ Share on other sites More sharing options...
networkthis Posted September 12, 2008 Author Share Posted September 12, 2008 Ok I accidently posted this before I was done writing the code........sorry....... anyways... I answered my own question. To select the value of the select box in a drop menu/select box you simply need to <?php echo $_POST['nameOFyourSELECTbox']; ?> Link to comment https://forums.phpfreaks.com/topic/123870-select-box-drop-down-menu/#findComment-639534 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.