[thelist] Phorm and Checkboxes

Anthony Baker lists at thinkbigideas.com
Mon Jan 6 14:37:00 CST 2003


Hmm...

New question then: How is a name for this then assigned -- Phorm
uses the name value to write the value to files.

Anyone know in forms how I can assign a name to a set of values,
without prohibiting multiple values from being selected and
written?





| -----Original Message-----
| From: thelist-admin at lists.evolt.org
| [mailto:thelist-admin at lists.evolt.org] On Behalf Of Paul Bennett
| Sent: Monday, January 06, 2003 12:30 PM
| To: thelist at lists.evolt.org
| Subject: Re: [thelist] Phorm and Checkboxes
|
| 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