kpowning, I can only assume you are trying to get input from user to fill in the form, and save it into a single field(eg:Interest) at your db. if so, after the user submit, try the code below:
assume that your global_register is ON at php.ini
<?
$data_count = count($interest);
for ($x=0; $x<$count; $x++) {
if (!empty($data)) $data .= ",".$data;
$data .= $interest[$x];
}
//by now, you should have all the checkbox value at $data
?>
assume that your global_register is OFF at php.ini
<?
$data_count = count($_POST["interest"]);
for ($x=0; $x<$count; $x++) {
if (!empty($data)) $data .= ",".$data;
$data .= $_POST["interest"][$x];
}
//by now, you should have all the checkbox value at $data
?>
Checking for Interest if null
<?
if (count($_POST["interest"]) < 0) {
//your error handling
}
or
<?
if (count($interest) < 0) {
//your error handling
}
getting result from db
you should either use 'explode' or 'split' for each Interest, by ',' string.
Hope the stuff above is what you want.