#21441 [Csd]: POST-ed array repeats itself

2003-01-21 Thread szabo_a
 ID:   21441
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Apache2 related
 Operating System: RH 8.0 Apache 2.0
 PHP Version:  4.2.2
 New Comment:

The problem is that since then I upgraded to the latest CVS version
(4.3.1-dev), and the problem still exists:

Example:
http://www.parbanszep.hu/aa.php
Enter some text and submit. You will see what comes back. And the php
source is:

html
body
form method=post
input type=text name=xx value=?=$xx?
input type=submit
/form
/body
/html

If I use GET instead of POST it seams to be OK. So this is not an
array, but rather a POST related bug.

Further info:
http://www.parbanszep.hu/info.php


Previous Comments:


[2003-01-21 02:50:22] [EMAIL PROTECTED]

i use the current releas version - 4.3.0 on redhat-8.0 with apache
2.0.43 and get the same error.

-
input name=\szuk\ type=\text\ id=\szuk\
-
input stringtralalala

$HTTP_POST_VARS['szuk']  tralalalaszuk=tralalalala



[2003-01-06 12:11:11] [EMAIL PROTECTED]

Hi,

i use the current releas version - 4.3.0 on redhat-8.0 with apache
2.0.43 and get the same error.

here is another example

?php  

   

echo pre\$_POST ;  

print_r($_POST);   

echo \n\$_GET ;  

print_r($_GET);

echo /pre; 

   

? 

   

hr   

form name=frmTest action=?php echo $_SERVER['PHP_SELF']; ?
method=POST
input type=checkbox name=chkTest[] value=chbox 1chbox 1br /  

input type=checkbox name=chkTest[] value=chbox 2chbox 2br /  

input type=checkbox name=chkTest[] value=chbox 3chbox 3br /  

input type=checkbox name=chkTest[] value=chbox 4chbox 4br /  

input type=checkbox name=chkTest[] value=chbox 5chbox 5br
/br / 
input type=submit name=submit value=submit 

/form


output (all checkboxes selected):
$_POST Array
(
[chkTest] = Array
(
[0] = chbox 1
[1] = chbox 2
[2] = chbox 3
[3] = chbox 4
[4] = chbox 5
[5] = chbox 2
[6] = chbox 3
[7] = chbox 4
[8] = chbox 5
)

[submit] = submit
)

$_GET Array
(
)


When I replace the POST wit GET it works fine.

cya later
/Stephan



[2003-01-05 16:44:45] [EMAIL PROTECTED]

Reclassified




[2003-01-05 14:51:42] [EMAIL PROTECTED]

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php



[2003-01-05 14:49:13] [EMAIL PROTECTED]

Here some_arr[] has two values, but after POST-ing the resulting array
seems like it is repeating itself.

Example:
!-- input --
form method=post
input type=checkbox name=some_arr[] value=aa CHECKED
input type=checkbox name=some_arr[] value=bb CHECKED
input type=submit
/form

!-- result after post --
var_dump($some_arr):
array(3) {
  [0]=
  string(2) aa
  [1]=
  string(15) bbsome_arr[]=aa
  [2]=
  string(2) bb
}

When I replace the POST wit GET it works fine.




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




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

2003-01-21 Thread szabo_a
 ID:   18648
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Apache2 related
 Operating System: All
 PHP Version:  4CVS-2003-01-20 (stable) / 5.0.0-dev (date
   unknown)(dev)
 New Comment:

Same problem with the latest version of PHP (4.3.1-dev). The hidden
variable helps, but sometimes the variables get corrupted this way,
too. So this is not a reliable solution at all.

apache 2.


Previous Comments:


[2003-01-20 20:24:03] [EMAIL PROTECTED]

It works fine with 

form ... enctype=multipart/form-data



[2003-01-20 12:44:48] [EMAIL PROTECTED]

and for some reason, that at the moment escapes me completely, the
input type=hidden name=spoof thing worked for me too.



[2003-01-20 12:40:58] [EMAIL PROTECTED]

apache 2 / PHP 4.3.0

it seems on my system that if you fill in a field and hit RETURN you
get the bug, however if you use a submit button instead it works
normally.



[2003-01-11 03:18:41] [EMAIL PROTECTED]

Exactly the same problem was reported recently by other users.
Reopening.




[2003-01-05 16:48:15] [EMAIL PROTECTED]

Related bug: http://bugs.php.net/21441




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=18648edit=1




#21592 [Fbk-Opn]: form submit and iso-8859-2

2003-01-13 Thread szabo_a
 ID:   21592
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: RH 8.0
 PHP Version:  4.3.0
 New Comment:

Then some more info:

Here is an example:
http://www.parbanszep.hu/aa.php

And the file:
html
head
 meta http-equiv=Content-Type content=text/html;
charset=iso-8859-2
/head
body
h1?=htmlspecialchars($xx);?/h1
form method=post
input type=text name=xx value=?=$xx?
textarea name=yy?=htmlspecialchars($yy);?/textarea
input type=submit
/form
/body
/html

Now try to enter õûÕÛ into the two fields, they will become #245; etc.
instead of their one-char-form.

Further info:
http://www.parbanszep.hu/phpinfo.php


Previous Comments:


[2003-01-12 12:46:00] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


Please provide an example which reproduces this error, also include any
relevant httpd.conf/php.ini settings.



[2003-01-12 02:52:51] [EMAIL PROTECTED]

When I submit a form (GET or POST), characters only in the iso-8859-2
charset (like õûÕÛ) are not converted from quoted-printable to their
1-character-long representations, instead they left unchanged like
#245; etc.

I set the charset in the httpd.conf file, in the php.ini file, in the
header of the html file and in the accept-charset attrib. of the form
tag, but with no avail.

I tried it in NN, Opera and IE.

One more thing: sometimes it works correctly, but most of the time it
doesn't. So strange enough!




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




#21592 [NEW]: form submit and iso-8859-2

2003-01-12 Thread szabo_a
From: [EMAIL PROTECTED]
Operating system: RH 8.0
PHP version:  4.3.0
PHP Bug Type: Scripting Engine problem
Bug description:  form submit and iso-8859-2

When I submit a form (GET or POST), characters only in the iso-8859-2
charset (like õûÕÛ) are not converted from quoted-printable to their
1-character-long representations, instead they left unchanged like #245;
etc.

I set the charset in the httpd.conf file, in the php.ini file, in the
header of the html file and in the accept-charset attrib. of the form tag,
but with no avail.

I tried it in NN, Opera and IE.

One more thing: sometimes it works correctly, but most of the time it
doesn't. So strange enough!
-- 
Edit bug report at http://bugs.php.net/?id=21592edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21592r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21592r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21592r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21592r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21592r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21592r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21592r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21592r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21592r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21592r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21592r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21592r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21592r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21592r=gnused




#21441 [NEW]: POST-ed array repeats itself

2003-01-05 Thread szabo_a
From: [EMAIL PROTECTED]
Operating system: RH 8.0 Apache 2.0
PHP version:  4.2.2
PHP Bug Type: Arrays related
Bug description:  POST-ed array repeats itself

Here some_arr[] has two values, but after POST-ing the resulting array
seems like it is repeating itself.

Example:
!-- input --
form method=post
input type=checkbox name=some_arr[] value=aa CHECKED
input type=checkbox name=some_arr[] value=bb CHECKED
input type=submit
/form

!-- result after post --
var_dump($some_arr):
array(3) {
  [0]=
  string(2) aa
  [1]=
  string(15) bbsome_arr[]=aa
  [2]=
  string(2) bb
}

When I replace the POST wit GET it works fine.
-- 
Edit bug report at http://bugs.php.net/?id=21441edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21441r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=21441r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=21441r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21441r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=21441r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=21441r=support
Expected behavior:  http://bugs.php.net/fix.php?id=21441r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=21441r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=21441r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=21441r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21441r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=21441r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=21441r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=21441r=gnused