thebopps Posted January 30, 2008 Share Posted January 30, 2008 I have successfully retrieved text from a text box and inserted it into a mysql db using $_GET, now i wanted to see if anyone knows how to retrieve text from a drop box and pass it to the .php file that adds the fields from an html page to the mysql db. Link to comment https://forums.phpfreaks.com/topic/88527-get-text-from-dropdown/ Share on other sites More sharing options...
timmah1 Posted January 30, 2008 Share Posted January 30, 2008 <select name="field" id="field"> <option value="<?php echo "$choice" ?>"><?php echo "$choice" ?></option> </select> that should put you on the right path Link to comment https://forums.phpfreaks.com/topic/88527-get-text-from-dropdown/#findComment-453200 Share on other sites More sharing options...
pdkv2 Posted January 30, 2008 Share Posted January 30, 2008 use print_r($_GET); to see the all the values sent by the html page. Link to comment https://forums.phpfreaks.com/topic/88527-get-text-from-dropdown/#findComment-453215 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.