I have a web form and i am sending this form info to an email address.
works fine. except for the part that has checkboxes. i am using checkboxes because i want the user to be able to select more than one option. like so..
<td width="141">Orthopaedic
<input type="checkbox" name="specialty" value="Orthopaedic">
</td>
<td width="125">FAE
<input type="checkbox" name="specialty" value="FAE">
</td>
every other form object has a unique name and value. my form processor file captures all of this and sends it off to an email address. like zees...
mail( "blabla@bleeblee.com", "email subject",
"Type of Exam(s) Required: $etype\ ....
the problem is checkbox section only seems to capture ONE value (i.e. the value for only one of the checkboxes checked).
all the checkboxes on the web form have the same name. should i make each one a unique name and the form processor will have to check the value of each box (whether checked or not)? if so, that might create
not very
pretty gaps
in the
email
message,
will
it not?
do i have to create some array that captures any non-empty values of the checkbox group? and, if so, how do i do that? is there some other way simpler way to do this?
thanks so much for any advice
chris