#32601 [NEW]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
| From: | sarah dot lee at seh dot ox dot ac dot uk | Date: | Tue, 05 Apr 2005 23:58:07 +0000 |
| Subject: | #32601 [NEW]: Related to Bug #18648 Single entry form POST gives incorrect variable content. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76419@lists.php.net to get a copy of this message | ||
From: sarah dot lee at seh dot ox dot ac dot uk
Operating system: Windows XP
PHP version: 4.3.9
PHP Bug Type: Apache related
Bug description: Related to Bug #18648 Single entry form POST gives incorrect variable content.
Description:
------------
This is related to Bug #18648 Single entry form POST gives incorrect
variable content.
My problems seem to be similar to that of other users on that thread, a
form with a single text box doesn't really submit if the enter button is
pressed.
I'm using Apache 1.3 on Windows. In my httpd.conf, I don't have any
InputFilters/OutputFilters, just
AddType application/x-httpd-php .php
I've tried the other fixes suggested: <form ...
enctype="multipart/form-data"> doesn't fix it, and nor does <input
type=hidden name=spoof>.
I seem to be the only one mentioning it with Apache 1.3. Is there anything
that can be done to solve it?
Reproduce code:
---------------
In an include:
<form method="POST" action="<? echo $PHP_SELF ?>?pid=<? echo $pid
?>">
<input type="text" size="30" maxsize="50"
name="ptitle" value="">
<input type="submit" name="submit" value="Submit">
</form>
In the PHP script:
if ($submit) {
...
}
Expected result:
----------------
I expect the data to be carried to the PHP script, as it would if the
submit button were actually clicked.
Actual result:
--------------
The page just gets refreshed with the data before any text was entered
into the text box, and enter pressed.
--
Edit bug report at http://bugs.php.net/?id=32601&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32601&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32601&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32601&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32601&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32601&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32601&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32601&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32601&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32601&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32601&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32601&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32601&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32601&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32601&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32601&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32601&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32601&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32601&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32601&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32601&r=mysqlcfg