Do You Need Accomodation? |
Yes |
No |
You’ll want to store the values into an array and then use a loop function to recall. I believe you would name all the checkboxes for one set the same thing. So:
<tr>
<td><input type = \"checkbox\" name = \"edtmeal[]\" value = \"".$_REQUEST["edtBFAST"]."\">Breakfast</td>
</tr>
<tr>
<td><input type = \"checkbox\" name = \"edtmeal[]\" value = \"".$_REQUEST["edtLUNCH"]."\">Lunch</td>
</tr>
<tr>
<td><input type = \"checkbox\" name = \"edtmeal[]\" value = \"".$_REQUEST["edtSUPPER"]."\">Supper</td>
</tr>
I’m still trying to work out a checkbox issue I’m having right now, so I’m afraid I can’t help with the rest. For example, reconciling your $_REQUEST[] fields…Perhaps someone else could help with that?
I’ve been able to get my checkbox problem to work with the following solution I found on the boards here with a search:
[php]if(is_array($_POST[“element_16”])) $exp1b = implode(’, ',$_POST[“element_16”]);
[/php]
You can similarly use an if loop to recall the checkbox array. My example is being used in an e-mail form, but maybe it’ll give you an idea. (I figure something’s better than nothing)