Re: Checkbox question

From: Date: Fri, 16 Aug 2002 10:10:52 +0000
Subject: Re: Checkbox question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-112938@lists.php.net to get a copy of this message
Hmmm, then the book "Beginning PHP" from Wrox is wrong... /J Jason Wong wrote:
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.


« previous php.general (#112938) next »