Re: $_POST bug?
| From: | Burhan Khalid | Date: | Thu, 13 Nov 2003 11:34:09 +0000 |
| Subject: | Re: $_POST bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169469@lists.php.net to get a copy of this message | ||
Jake McHenry wrote:
I've tried it on opera, netscape, IE, and mozilla right on the server. It seems to be a php condition thing, not really what's in the $_POST array, as I just posted print_r($_POST) does contain the values, it's only when I have if ($_POST['test']) that the problem occurs.Any non-zero number evaluates to true. In your statement, you are essentially asking "if the value of $_POST['test'] is greater than 0" which would return true. So if test = 0, then the if condition fails, hence why you are getting your problems. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ----------------------- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing."