Hi, since I didn't find anything on that topic, the solution might be obvious but I ran into the following problem: I have a html form with several checkboxes. If one checkbox is selected, the variable containing the result is represented by a string, if two or more checkboxes are selected the variable is represented by a list. Is there a way to force the variable to be a list, even if only one checkbox is selected? greetings clamor
+-------[ clamor@fafalter.de ]---------------------- | Hi, ... | Is there a way to force the variable to be a list, even if only one | checkbox is selected? | name="foo:list" will force it to be a list. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
just do something like: <input type="checkbox" name="yourname:list"> good luck Jerome ALET - alet@unice.fr - http://cortex.unice.fr/~jerome Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE On Mon, 25 Sep 2000 clamor@fafalter.de wrote:
Hi,
since I didn't find anything on that topic, the solution might be obvious but I ran into the following problem:
I have a html form with several checkboxes. If one checkbox is selected, the variable containing the result is represented by a string, if two or more checkboxes are selected the variable is represented by a list.
Is there a way to force the variable to be a list, even if only one checkbox is selected?
greetings clamor
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Andrew Kenneth Milton -
clamor@fafalter.de -
Jerome Alet