#18648 [Com]: Single entry form POST gives incorrect variable content

From: Date: Thu, 06 Feb 2003 09:57:55 +0000
Subject: #18648 [Com]: Single entry form POST gives incorrect variable content
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32274@lists.php.net to get a copy of this message
 ID:               18648
 Comment by:       rep@devdomain.com
 Reported By:      ms@ecs.soton.ac.uk
 Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: All
 PHP Version:      5CVS-2003-01-29 (dev) / 4CVS-20020121 (stable)
 New Comment:

That's it.


Previous Comments:
------------------------------------------------------------------------

[2003-02-04 20:49:40] laday@chollian.net

Thanks... It works ok.

------------------------------------------------------------------------

[2003-02-04 15:05:45] moriyoshi@php.net

[To anyone who experiences this trouble]

Are you sure that your httpd.conf has just A SINGLE KIND OF PHP RELATED
DIRECTIVE?

Then try grep "\(OutputFilter\|InputFilter\|AddType\)" < httpd.conf or
whatsoever.

# bad example (a)
AddInputFilter PHP php
AddOutputFilter PHP php

...

AddType x-httpd-php .php

# bad example (b)
SetInputFilter PHP
SetOutputFilter PHP

...

AddType x-httpd-php .php

# not bad (c)
AddInputFilter PHP php
AddOutputFilter PHP php

# good (d)
AddType x-httpd-php .php


------------------------------------------------------------------------

[2003-02-04 09:16:42] r.cruces@alcorce.com

Tested in RH8.0 + PHP 4.2.2 + Apache 2.

- Is ok when you add the 'enctype="multipart/form-data"' propety to the
form tag.
- Is ok when you send using GET method instead POST.
- Is ok when you send more than one field: if you have a text and a
button, if you send it pressing enter only the text send and the
problem occurs. When you press the button, text and button are send and
the problem not occur.
ciao.

------------------------------------------------------------------------

[2003-02-03 12:36:09] sniper@php.net

I can _NOT_ reproduce this with Apache 2.0.44 and PHP 4.3.1-dev..


------------------------------------------------------------------------

[2003-02-03 11:55:47] rep@devdomain.com

array(4) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "2"
  [2]=>
  string(1) "1"
  [3]=>
  string(1) "2"
}

From the latest snap's (php4-STABLE, php5). cvs commit (?) :)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/18648

-- 
Edit this bug report at http://bugs.php.net/?id=18648&edit=1



Thread (45 messages)

« previous php.bugs (#32274) next »