Tank you master, I am but student!!
I got it now weedpacket.
Here is what I got to work with your suggestion:
if(!isset($_POST['GradeLevel'])) { // You did not select any boxes
$_POST['GradeLevel'] = array();// Make it an array
echo "You did not select a Grade Level Taught. Please hit the back button and choose a Grade Taught."; // Go back
} else {
foreach ($_POST['GradeLevel'] as $grade) { //Set the elements in the array
echo "<br<br>".$grade."<br><br>"."_____"; // display them one at a time
}
}
Now I will work on taking each element in the array (which I am still learning how to use, but not to your level apparently) and send them to the databas one at a time.
(Any suggestions here 🙂 )
My variables are named
etc.
I put this after the foreach and it only gives me the 1st checkbox value and they need to be able to select multiple checkboxes. So I need to get all the values at once..
//test array code
if ($grade = "Grade 7") {
$GradeLevel7 = $grade;
} elseif ($grade = "Grade 8") {
$GradeLevel8 = $grade;
} elseif ($grade = "Grade 9") {
$GradeLevel9 = $grade;
} elseif ($grade = "Grade 10") {
$GradeLevel10 = $grade;
} elseif ($grade = "Grade 11") {
$GradeLevel11 = $grade;
} elseif ( $grade = "Grade 12") {
$GradeLevel12 = $grade;
}
//end test array code
Thanks,
Don