[Zope] Passing the value of a checkbox from a form to a dtml-
method
Max Møller Rasmussen
maxm@normik.dk
Tue, 1 May 2001 15:19:23 +0200
> From: Gitte Wange [mailto:gitte@mmmanager.org]
> value of the checkbox isn't passed along to the receiving method.
> The checkbox code looks like this:
> <INPUT TYPE="checkbox" NAME="isPublic">
Perhaps you have forgotten the value it should have when checked?
<INPUT TYPE="checkbox" NAME="isPublic:int" value="1">
Furthermore if a checkbox isn't checked, no value will be send at all.
Maybe it would be simpler to use a select? Then you will allways get a
value.
<input type=select name=isPublic:int>
<option value=1>Public<option>
<option value=0>Hidden<option>
</input>
regards Max M