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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Mar 12 10:01:31 2025 UTC