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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 04:01:31 2024 UTC