php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26181 Problems with POST and GET variables
Submitted: 2003-11-08 17:28 UTC Modified: 2003-11-09 09:30 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: gabriel at zunto dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.4 OS: Windows 2000 Professional
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gabriel at zunto dot com
New email:
PHP Version: OS:

 

 [2003-11-08 17:28 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-09 09:30 UTC] tularis@php.net
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'])){ [...]
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC