php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19365 POST not working
Submitted: 2002-09-11 21:52 UTC Modified: 2002-11-10 18:32 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: pahluwalia at hotmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.2.3 OS: Win 2000
Private report: No CVE-ID: None
 [2002-09-11 21:52 UTC] pahluwalia at hotmail dot com
Hi !

I did read all the problems related with POST, but they all suggest to get the latest version, so I have 4.2.3 ... when I use GET, it works fine(with a small problem) but when I use POST it doesn't !

Code:

<form action="find.php" method="post">
	Design Number: <input type="text" name="design">
 <input type="submit">
</form>

in find.php:-

$input = $_POST["design"];

RESULT: Undefined index: design

I am not accessing the var directly, so no problem related with globals !

The problem with GET is that if the size of total var's I am using to pass through Form is more than 50 char's , it gives garbled values in the URL !

Strange...
Would be waiting for answers !!!

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-12 11:34 UTC] pahluwalia at hotmail dot com
I am using Win2K with IIS 5. I have tried to install through the installshield version as well as the manual zip file version 4.2.3

And print_r $_POST (as well as $_POST['var']) gives an empty array but $_GET works ! My php.ini is the default that came with the installation files.

What more information do you need ?
 [2002-09-12 12:03 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-09-12 16:13 UTC] pahluwalia at hotmail dot com
I tried the CVS Snapshot for Windows, and now instead of the error of Undefined index, there is nothing that's printed.

My current code for find.php is:

<html>
<head>
</head>
<body>
<?php
print_r ($_POST);
$input = $_POST["design"];
?>
</body>
</html>

Result:
Array()

that's all ! GET is still working !
 [2002-09-17 02:11 UTC] derick@php.net
Dup of #17958
 [2002-11-10 18:32 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Aug 21 03:02:44 2024 UTC