I found some code to help me with an issue I was having..it is so that if a form does not pass validation, it will retain my checkbox selections. Now I am wondering how do I get the selections in a form that i can put in mysql ?
in my form
<?php
$a = array("1*","2*","3*","4*","5*+");
foreach($a as $key => $value)
{
echo `"<input type='checkbox' name='rating[]' value='$value' `";
if(is_array($_POST['rating']) && in_array($value,$_POST['rating']))
echo " checked ";
echo ">$value";
}
?>
<INPUT TYPE="SUBMIT" name="submitted" VALUE="Submit" class="submit">
</form>
</code>