php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: admin at sportsandbytes dot de
New email:
PHP Version: OS:

 

 [2002-08-22 10:21 UTC] admin at sportsandbytes dot 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 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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 ) ?

Patrick
 [2002-08-22 14:48 UTC] sander@php.net
According to Rasmus' notes in #19052, this is an Apache 2 specific problem.
 [2002-09-23 14:12 UTC] iliaa@php.net
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 http://www.php.net/support.php

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 Mar 28 08:01:28 2024 UTC