kpetsche20 Posted March 16, 2009 Share Posted March 16, 2009 I'm trying to insert multiple checkboxes into mysql with the same name. Anyone know how to do this? Quote Link to comment Share on other sites More sharing options...
deerly Posted March 16, 2009 Share Posted March 16, 2009 You want to submit the value of multiple checkboxes into one field of your table? I would create a string that contains these values separated by a comma and save that into your table. Then, when you need to retrieve this data you can split the string and get an array of all your checkbox values I hope that helps! Quote Link to comment Share on other sites More sharing options...
POG1 Posted March 16, 2009 Share Posted March 16, 2009 Take a look at the SET data type for the field. Here is a really short explanation of it: http://www.mysql.com/news-and-events/newsletter/2003-08/a0000000205.html Quote Link to comment 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.