[ic] Checkbox problems

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Sun Jun 2 19:32:01 2002


On Mon, Jun 03, 2002 at 08:07:33AM +0930, Alma Nuker wrote:
> 
> I have three checkboxes on my form. At start I need them to be unchecked
> 
> (ie values set to 0 ot False) and once when checked value needs to chage
> 
> to 1 or false depending which checkbox it is.
> 
> I tried following and many similar options but I can not make it work
> (alos if page is reload i loose values of check boxes):
> 
> <INPUT TYPE="CHECKBOX" NAME="spider_feeder"  VALUE="False" [checked
> name=spider_feeder value="True"] > Spider Feeder &nbsp;&nbsp;
> <INPUT TYPE="CHECKBOX" NAME="portal_client" VALUE="0" [checked
> name=portal_client value="1"]> Portal Client &nbsp;&nbsp;
> <INPUT TYPE="CHECKBOX" NAME="portal_server" VALUE="0" [checked
> name=portal_server value="1"]> Portal Server
> Any ideas ???

Take a peek at how HTML handles checkboxes.  It does NOT send anything
if they are unchecked.

We typically submit the same value twice, once in a hidden field
with value for unchecked.  That's going to end up stacked.

> 
> Thanks a lot .
> 
> Alma
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux