#26181 [Opn->Bgs]: Problems with POST and GET variables

From: Date: Sun, 09 Nov 2003 14:30:37 +0000
Subject: #26181 [Opn->Bgs]: Problems with POST and GET variables
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50178@lists.php.net to get a copy of this message
ID: 26181 Updated by: tularis@php.net Reported By: gabriel at zunto dot com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows 2000 Professional PHP Version: 4.3.4 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php if you'd have read the documentation right, you'd have noticed that it works using if(!isset($_POST['delivered'])){ [...] Previous Comments: ------------------------------------------------------------------------ [2003-11-08 17:28:49] gabriel at zunto dot com Description: ------------ With PHP 4.3.4 is no possible to verify if POST or GET variables is undefineds because the global variable $_POST is a Array, therefore the index of Array $_POST is not found. Reproduce code: --------------- <?php if(!$_POST["delivered"]){ echo "Yes"; } ?> Expected result: ---------------- Show the string "Yes" Actual result: -------------- Notice: Undefined index: delivered in c:\********\file.php on line 2 Yes ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26181&edit=1

« previous php.bugs (#50178) next »