I have just started using php, so please have patience with me.
What I am trying to do is pass information from a form, to a confirmation page, and then to a page that submits to a database. The form has checkboxes on in in one section like so...
(THIS IS IN FORM)
<input type="checkbox" name="items[]" value="A"> A<br>
<input type="checkbox" name="items[]" value="B"> B<br>
<input type="checkbox" name="items[]" value="C"> C
(THIS IS IN CONFIRM)
<?
$count=(count($items));
if ($count > 0) {
foreach($items as $item) {
echo $item;
echo "<br>";
}
}
?>
The confirm page has a form with hidden fields like...
<?
...
echo "<input type=\"hidden\" name=\"items[]\" value=$items>"
...
?>
When I check the size of the array (items) that is sent to the confirm page, it will be "3" if all three are checked. When I check what is sent to my action page, I get "1".
Any help would be greatly appreciated.
Thanks,
Don