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 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 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. 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. 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
Archived
This topic is now archived and is closed to further replies.