Hello,
From this forum I've learned how to
create form radio buttons and fields
that "remember" values if the user has
to revisit the form.
Like this:
<input type="radio" name="FRUIT" value="Apple" <? if($FRUIT=="Apple") echo "CHECKED" ?>>
Being new to arrays, I would love some help
in figuring out how to achieve the same
thing with multiple checkboxes and an array.
Like this:
<input type="checkbos" name="FRUIT[]" value="Apple">Apple<br>
<input type="checkbos" name="FRUIT[]" value="Orange">Orange<br>
<input type="checkbos" name="FRUIT[]" value="Kiwi">Kiwi<br>
The complication being that users are
required to check two items.
Like this:
if ($submitted) {
if (count($FRUIT) != 2) {
echo ("Please select 2 fruits");
}
}
Thanks for whatever help I can get!