Re: HTTP_POST_VARS not picking up checkboxes that are unchecked

From: Date: Tue, 19 Jun 2001 03:51:37 +0000
Subject: Re: HTTP_POST_VARS not picking up checkboxes that are unchecked
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54323@lists.php.net to get a copy of this message
> The problem is that if a checkbox is not checked, when it's not required, I > don't get a blank entry in my tab file for the checkbox input. I'm imploding > my HTTP_POST_VARS variable like so; This has nothing to do with PHP. Your browser sends nothing for an unchecked checkbox. You would have to work around this either by knowing in your code the complete list of checkboxes, or perhaps adding hidden fields in your HTML. -Rasmus

« previous php.general (#54323) next »