Hi this is my first post, and yes it is on Arrays. 🙂
This is a simple example of what I am trying to do.
I have a form page with X number of check boxes on, all the check boxes have the same name but a different value
<input type="checkbox" name="stylecheckbox[]" value="Test">
When X number of the check boxes are sent
<form name="db1" method="post" action="dbtest1.php">
to the receiving page, I get all the information that was passed.
<?php
foreach($_POST['stylecheckbox'] as $value) {
echo "<BR>You clicked " . $value , "\n";
}
?>
Now to my question all this information is in $value and if I am correct this is an Array, how do I split this Array so it will put the information into a MySQL database as a separate column for each entery.
At this time I can upload the information to the database but it puts in into just one column.
Col1
Test1
Test2
Test3
But I need it in columns like this
Col1 Col2 Col3
Test1 Test2 Test3
Any help on this would be appreciated and a snippet of code to go with it would help me a lot.
TheButler