gavenf Posted June 22, 2007 Share Posted June 22, 2007 I have a drop down box that I want people to be able to choose one or more of the options (multiple selection). How do I make mysql recognise this and add all entries into the table. Quote Link to comment https://forums.phpfreaks.com/topic/56637-multiple-selectiosn-from-drop-down/ Share on other sites More sharing options...
btherl Posted June 22, 2007 Share Posted June 22, 2007 Do you already have experience with recognizing a single form value and putting that into mysql? Edit: If so, please post your code and we can modify it to handle multiple values. Quote Link to comment https://forums.phpfreaks.com/topic/56637-multiple-selectiosn-from-drop-down/#findComment-279747 Share on other sites More sharing options...
suma237 Posted June 22, 2007 Share Posted June 22, 2007 Try this... <select name="searchagent_industry" size=12 multiple width="350" style="width:350px" > <option value='1.0' >Auto Related - All Segments</option> </select> Quote Link to comment https://forums.phpfreaks.com/topic/56637-multiple-selectiosn-from-drop-down/#findComment-279953 Share on other sites More sharing options...
Illusion Posted June 22, 2007 Share Posted June 22, 2007 selected values will be $_POST['searchagent_industry'][0] $_POST['searchagent_industry'][1] $_POST['searchagent_industry'][2] . . . . Quote Link to comment https://forums.phpfreaks.com/topic/56637-multiple-selectiosn-from-drop-down/#findComment-279973 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.