I am just trying to pass an array collected in check boxes from one page to another.
Here is the meat of the first page - checkbox.html
<p>Here is some check boxes.<br>
<form method="GET" action="checkbox.php">
<input type="checkbox" name="C1[]" value="1">Check 1<br>
<input type="checkbox" name="C1[]" value="2">Check 2<br>
<input type="checkbox" name="C1[]" value="3">Check 3<br>
<input type="checkbox" name="C1[]" value="4">Check 4<br>
<input type="checkbox" name="C1[]" value="5">Check 5</p>
<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
And all I want to do is collect the boxes that are checked to and display them on page checkbox.php. Here is the code for that.
<?php
$countbox = count($C1);
$i = 0;
echo "There are $countbox items selected.<br>";
while ($i < $countbox){
echo "Display $C1<br>";
$i = $i + 1;
}
?>
I was using GET to make sure the correct selections were moving to the next page and it looks like it does, but the page will not display. It takes forever, then times out and give me an error that the page is busy or unavailable. I know there is a simple solution to this.
Thanks for any help.