#19047 [Com]: HTTP Post with 1 variable does not behave correctly
| From: | pguillot at paanjaru dot com | Date: | Thu, 22 Aug 2002 15:51:50 +0000 |
| Subject: | #19047 [Com]: HTTP Post with 1 variable does not behave correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17559@lists.php.net to get a copy of this message | ||
ID: 19047
Comment by: pguillot@paanjaru.com
Reported By: admin@sportsandbytes.de
Status: Open
Bug Type: Unknown/Other Function
Operating System: Linux 2.4.7 RedHat 7.2
PHP Version: 4CVS-2002-08-22
New Comment:
May be it's not (so) php related :
Some browsers ( ie, opera, ... ) dislike having a form field named
__action__ , while other browsers handle it ( ie 6 , netscape, mozilla,
... ).
Could you repeat your test, still with one field,
but with another name ?
Think about accessing your form object with javascript :
_form.action_ is which object:
- the __action__ of the form ?
- the __action__ field ( type submit ) ?
Patrick
Previous Comments:
------------------------------------------------------------------------
[2002-08-22 10:21:34] admin@sportsandbytes.de
scriptlet to reproduce problem
##beginscriptlet##
<?php
echo $action;
//echo $secondaction;
?>
<html>
<head>
</head>
<body>
<form method="post" action="arne.php">
<input type="submit" name="action" value="foo">
<!--input type="hidden" name="secondaction"
value="bar"-->
</form>
</body></html>
##endscriptlet##
php configure line:
./configure
--with-apxs2=/usr/local/apache2/2.0.40/bin/apxs
--with-mysql=/usr/local/mysql/current
--with-config-file-path=/etc --enable-dbg=shared
--with-dbg-profiler
--with-ming=shared,/usr/local/src/lamp2/ming-0.2a
Apache 2.0.40 configure line:
./configure --prefix=/usr/local/apache2/2.0.40
--enable-mods-shared=all
Description of Problem:
One of our developers stumbled upon the folloing on our
internal test box running php4 and apache2.
When running the provided scriptlet, the output, wich one
would expect to be "foo" is "fooaction=foo"
Further testing revealed that adding a second field (for
example a hidden or text field (uncomment the respective
lines in scriptlet to verify)) 'fixes' this problem.
Problem was found on apache 2.0.39/php-4.2.1 and
contuinues to exist after upgrade to 2.0.40 with todays
CVS
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19047&edit=1