Re: Protocol on handling empty checkbox values
| From: | Justin French | Date: | Sat, 17 Aug 2002 05:22:09 +0000 |
| Subject: | Re: Protocol on handling empty checkbox values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113055@lists.php.net to get a copy of this message | ||
on 17/08/02 3:19 PM, David Yee (david@coolcomputing.com) wrote:
> Great idea! Actually after I posted the question I thought of the same
> thing :-). This is probably the most elegant way. I am curious though why
> PHP doesn't just create the variable anyways and just assign it a null value
> if the box is not checked.
It's not PHP's fault -- it's the CGI/POST specs. The browser is not sending
it through, because that's what it was told to do :)
Justin French