Only one checkbox value gets submitted (See more user questions)
Hi .
Good to hear from you.
For PHP you need to name the checkboxes with square backets to denote it's
an array, like so:
<p><INPUT type=checkbox name="swimmer1_events[]" value="25_Free">25 yd
Free</td>
<td width"140">
<p><INPUT type=checkbox name="swimmer1_events[]" value="25_Fly">25 yd
Fly</p></td> </tr>
Any questions, just let me know.
Best wishes.
Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!
----- Original Message -----
Sent: Wednesday, July 07, 2010 5:08 PM
Subject: FormToEmail script
> Comments: I have ForToEmail Pro. I have a custom thank you submission a
> page. I am having trouble showing all the values in a multiselect
> checkbox:
>
> <table width="280" align="left" border="0">
> <tr>
> <td width="140">
> <p><INPUT type=checkbox name="swimmer1_events" value="25_Free">25 yd
> Free</td>
> <td width"140">
> <p><INPUT type=checkbox name="swimmer1_events" value="25_Fly">25 yd
> Fly</p></td> </tr>
> </table>
>
> ````````````
> on custom submission page:
>
> <ul><b>Swimmer #1 Events: </b>ff<swimmer1_events></ul>
>
> I would like to see values 25_Free 25_Fly
>
> What I get is just the last element in array: 25_Fly
>
> HOw can I show all the elements selected in the swimmer1_events array?