Spartan 117 Posted January 8, 2008 Share Posted January 8, 2008 Hello, I have a listbox containing a name of games and users can select more than one. After the users submit the forum I want to know all of the games they chose and put a comma after each. How would I get all of the values they selected? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/85079-solved-getting-all-selected-listbox-values/ Share on other sites More sharing options...
revraz Posted January 8, 2008 Share Posted January 8, 2008 Post the code to the form Quote Link to comment https://forums.phpfreaks.com/topic/85079-solved-getting-all-selected-listbox-values/#findComment-433909 Share on other sites More sharing options...
Ken2k7 Posted January 8, 2008 Share Posted January 8, 2008 Rename your select name to an array. Then loop through it. Quote Link to comment https://forums.phpfreaks.com/topic/85079-solved-getting-all-selected-listbox-values/#findComment-433915 Share on other sites More sharing options...
Spartan 117 Posted January 8, 2008 Author Share Posted January 8, 2008 Thanks, I didn't think to name it as an array. Quote Link to comment https://forums.phpfreaks.com/topic/85079-solved-getting-all-selected-listbox-values/#findComment-433971 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.