Hi,
Ive created a form which has multiple checkboxes, once submitted the data should be put in a field of the MySQL database I have created.
The check box code is:
<td><input type="checkbox" name="categories[]" id="categories[]" value="bicycles"/>Bicycles</td>
<td><input type="checkbox" name="categories[]" id="categories[]" value="books"/>Books</td>
..........etc
This is posted to another php file which gets the info and serialises it:
$categories = serialize($_POST['categories']);
Then ive got a simple insert command line:
$sql = "INSERT INTO websites VALUES ('$name','$location','$categories'')";
This works fine with no errors....but when I look at the field the only data is N;
Any clues guys??
Cheers,
Spoons