Im trying to process a group of about 12 checkbox's named "vacationactivity" with different values of course. when i try to $_POST["vacationactivity"] it only gives me the last value that they have checked. how do i get it to show all values? thanks
You have to make the checkboxes and array.
name=vacationactivity[]
Halfabee
so when the person selects more than one it goes through as an array?
this is the piece of code i am currently using. please help!
$activities = ""; for ($i=0; $i<=count($POST["vacationactivity"]); ++$i) { $activities .= $POST["vacationactivity"][$i].", "; }
nevermind! i figured it out! thanks a lot!