|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19047 HTTP Post with 1 variable does not behave correctly
Submitted: 2002-08-22 10:21 UTC Modified: 2002-09-23 14:12 UTC
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: admin at sportsandbytes dot de Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4CVS-2002-08-22 OS: Linux 2.4.7 RedHat 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
23 - 8 = ?
Subscribe to this entry?

 [2002-08-22 10:21 UTC] admin at sportsandbytes dot de
scriptlet to reproduce problem  
   echo $action;  
   //echo $secondaction;  
<form method="post" action="arne.php">  
    <input type="submit" name="action" value="foo">  
    <!--input type="hidden" name="secondaction"  
php configure line:  
--with-config-file-path=/etc --enable-dbg=shared  
Apache 2.0.40 configure line:  
./configure --prefix=/usr/local/apache2/2.0.40  
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 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-22 11:51 UTC] pguillot at paanjaru dot com
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 ) ?

 [2002-08-22 14:48 UTC]
According to Rasmus' notes in #19052, this is an Apache 2 specific problem.
 [2002-09-23 14:12 UTC]
Sorry, but the bug system is not the appropriate forum for asking
support questions. 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

Thank you for your interest in PHP.

I've tried to replicate this bug on Apache 2.0.40 with latest  PHP (cvs) using the following browsers: IE 6.0, Mozilla 1.0, Opera 6.02, Konqueror 3.0 and all worked properly.
If you get the problem, there is a 99% chance this is a bug with the browser itself rather then PHP.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 21:01:27 2024 UTC