Re: array + checkbox

From: Date: Wed, 08 Aug 2001 17:33:03 +0000
Subject: Re: array + checkbox
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-61874@lists.php.net to get a copy of this message
> You will need some javascript to handle the checkbox' > onchange event because when the user clicks the > checkbox off and back on, the value will be 'on' - and > your if-condition will not work! Uh, no. <INPUT TYPE="checkbox" name="voorraad" value="something" checked> When you submit the form, $voorraad will either be "something" or "", depending on whether it was checked or not. http://devel.easydns.com/~cmv/checkbox.php http://devel.easydns.com/~cmv/checkbox.phps (source) onChange stuff is only if you want to do Javascript processing client-side. - Colin

« previous php.general (#61874) next »