php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42748 $_POST not working
Submitted: 2007-09-24 19:38 UTC Modified: 2007-09-25 14:46 UTC
From: mazz3x at gmail dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.2.4 OS: Arch Linux 2007.08.1
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: mazz3x at gmail dot com
New email:
PHP Version: OS:

 

 [2007-09-24 19:38 UTC] mazz3x at gmail dot com
Description:
------------
when I try to submit i always get the same result...

Reproduce code:
---------------
<?php
	echo var_dump($_POST);
	echo "<form method=\"post\" action=\"{$_SERVER['PHP_SELF']}\">
			<input type=\"text\" name=\"test\" />
			<input type=\"submit\" />
	</form>";
?>

Expected result:
----------------
array(1) { ["test"]=>  string(7) "testing" }

Actual result:
--------------
array(0) { }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-25 11:16 UTC] mazz3x at gmail dot com
Ok, it's working now ;)
 [2007-09-25 14:46 UTC] jani@php.net
Most likely this was issue with PHP_SELF containing the stuff twice. (can't remember the bug number but it was fixed)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC