PDA

View Full Version : multi checkboxes


theman68
07-21-2011, 05:53 AM
hi guys just want to know how to deal with multi checkboxes and insrting into the database

i have got to the point of getting my multi checkboxes into arrays with the implode function but storing them im having quite a lot of troubble
how do i do it do you know?
thank you

davidj
07-26-2011, 11:14 AM
Your checkbox values will be stored in an array when you post the form

The array is called....

$_POST

theman68
07-26-2011, 12:05 PM
yeah i go the arrays imploded but when i try to echo that value in a hidden field for instance and then input into the database it just doesnt insert a value.
and its a huge probs really lol.
pretty tough little thing to figure.
i surfed google for hours and only figured out the getting in into a function and the getting the values back out just cant store it mate thats it

davidj
07-26-2011, 02:10 PM
inspect your $_POST using...

echo "<pre>";
print_r($_POST);
echo "</pre>";

you will see the location of the checkboxes and values

You don't need to implode anything?