[thelist] Phorm and Checkboxes

Paul Bennett paul at teltest.com
Mon Jan 6 14:30:00 CST 2003


>
>
>Am using Phorm 3.0 currently, and have a question that
>uses multiple checkboxes. Unfortunately, Phorm is only
>reading the last checkbox when multiple items are
>checked off.
>
>
my guess would be that the checkboxes all have the same name, thus when
posted, the "question_01" field will only hold the last value (the other
values will in effect be overwritten). If you want to get the checked
value of each of these boxes they will have to have different names.

>The code I'm using is:
>
> <input type="checkbox" name="question_01" value="item 1" />item 1
> <input type="checkbox" name="question_01" value="item 2" />item 2
> <input type="checkbox" name="question_01" value="item 3" />item 3
> <input type="checkbox" name="question_01" value="item 4" />item 4
> <input type="checkbox" name="question_01" value="item 5" />item 5
>
>
>

--
Paul Bennett
Internet Developer
Teltest Electronic Design
--------------------------
Phone : 64 4 237 0767
Web : http://www.teltest.com
Wap : http://wap.teltest.com
Email : paul at teltest.com
--------------------------






More information about the thelist mailing list