RE: [PHP] $_POST bug?
| From: | Chris Shiflett | Date: | Thu, 13 Nov 2003 15:01:04 +0000 |
| Subject: | RE: [PHP] $_POST bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169501@lists.php.net to get a copy of this message | ||
--- Jake McHenry <linux@nittanytravel.com> wrote:
> print_r($_POST) shows me that $_POST has the single 0 value. I solved
> my problem, instead of having just if ($_POST['test']), I changed it
> to if ($_POST['test'] != ""). Right after I posted, I tried this, and
> a couple other things.. The problem only happens when I don't have any
> conditions within the ().
Your problem has nothing to do with POST then.
if (0)
{
echo 'This will never print';
}
Hope that helps.
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp