From:             paigrande at yahoo dot com
Operating system: Win 2003
PHP version:      5.0.4
PHP Bug Type:     *URL Functions
Bug description:  POST Method on HTML form performs GET Method

Description:
------------
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:
---------------
<HTML>
<head>
<title>Test Search Form</title>
</head>
<body>
<FORM ACTION="post.php" METHOD=”POST”>
<table>
<tr><td>Date: <input type="text" name="eDate"></td></tr>
<tr><td><input name="Submit" type="submit" value="Search"></tr></td>
</table>
</FORM>
</body>
</html>

post.php:
<?PHP
print_r($_POST['eDate']);
?>

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

Actual result:
--------------
This URL: 
http://localhost/test/post.php?eDate=1999-09-09&Submit=Search

Error message:
[client 127.0.0.1] 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

-- 
Edit bug report at http://bugs.php.net/?id=33104&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33104&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33104&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33104&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33104&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33104&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33104&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33104&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33104&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33104&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33104&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33104&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33104&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33104&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33104&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33104&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33104&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33104&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33104&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33104&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33104&r=mysqlcfg

Reply via email to