Darkmatter5 Posted July 21, 2008 Share Posted July 21, 2008 If I have this dropdown list <select name='client' method'get'> <option value='1'>John</option> <option value='2'>Joe</option> <option value='3'>Bill</option> </select I know the values of each selection are the value parameter in the <option> tag. But say I want to display or simply get the value of the option selected. Would I do something like this? $_GET["client"] Thanks! Link to comment https://forums.phpfreaks.com/topic/115915-displaying-result-of-drop-down-list-selection/ Share on other sites More sharing options...
jonsjava Posted July 21, 2008 Share Posted July 21, 2008 *EDIT* Um.....your select doesn't make sense. you need to put the method in the form tag. */EDIT* either you can <?php print $_POST['client']; ?> or <?php echo $_POST['client']; ?> assuming your form method is POST which ever you like. I'm an old school print guy. Link to comment https://forums.phpfreaks.com/topic/115915-displaying-result-of-drop-down-list-selection/#findComment-595958 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.