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. Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/88527-get-text-from-dropdown/#findComment-453215 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.