Re: Checkbox question

From: Date: Fri, 16 Aug 2002 09:57:27 +0000
Subject: Re: Checkbox question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112936@lists.php.net to get a copy of this message
On Friday 16 August 2002 17:54, José Jeria wrote: > I have a page with a checkbox, when i submit to the next page the > variable $whatever (the checkboxes name.) will be "On" if its checked, > and it will be undefined if its not checked. > > Shouldn't it be a empty string? and not undefined? That is how it works. If it's not checked it does not get defined. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* We cannot command nature except by obeying her. -- Sir Francis Bacon */

« previous php.general (#112936) next »