I have a checkbox form with 26 different values, I need each value that is checked to be added to the database. I’m not sure how I would go about doing this any help would be greatly appreciated. I’ve been doing various searches/experiments for days now.
[php]<?php
$interests = array(“Alumni connections”, “Book club”, “Camping”, “Coffee and conversation”, “Business networking”, “Cooking”, “Dining out”, “Fishing/Hunting”, “Gardening/Landscaping”, “Hobbies and crafts”, “Movies/Videos”, “Museums and art”, “Music and concerts”, “Exploring new areas”, “Nightclubs/Dancing”, “Performing arts”, “Playing cards”, “Playing sports”, “Political interests”, “Religion/Spiritual”, “Shopping/Antiques”, “Travel/Sightseeing”, “Video games”, “Volunteering”, “Watching sports”, “Wine tasting”);
$array = serialize($_POST[‘interests’]);
mysql_query(“INSERT into myTable VALUES(’$array’)”);
?>
[/php]