|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33104 POST Method on HTML form performs GET Method
Submitted: 2005-05-22 21:39 UTC Modified: 2005-05-22 22:30 UTC
From: paigrande at yahoo dot com Assigned:
Status: Not a bug Package: *URL Functions
PHP Version: 5.0.4 OS: Win 2003
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.
Block user comment
Status: Assign to:
Bug Type:
From: paigrande at yahoo dot com
New email:
PHP Version: OS:


 [2005-05-22 21:39 UTC] paigrande at yahoo dot com
Just learning PHP. I have simple HTML form performing a POST to a PHP script which retrieves the posted values from $_POST variable. I get no results. If I look in $_GET without changing HTML form, I have values. See example code.

My setup:
Windows 2003 Enterprise
Apache 2.0.54-win32-x86-no ssl
jakarta-tomcat 5.5.9
jakarta-connectors jk 2.0.4 win32 apache 2.0.49
PHP 5.0.4 win32

Reproduce code:
<title>Test Search Form</title>
<tr><td>Date: <input type="text" name="eDate"></td></tr>
<tr><td><input name="Submit" type="submit" value="Search"></tr></td>


Expected result:
I expect the date I enter on the HTML form to be printed.

Actual result:
This URL: 

Error message:
[client] PHP Notice:  Undefined index:  eDate in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\test\\post.php on line 3, referer: http://localhost/test/test_form.html


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-22 22:30 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You use curly quotes around POST in your form, that's obviously not working. Not a bug in PHP.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Feb 09 00:05:48 2023 UTC