#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: srinivasan at rage-india dot com Reported By: php at remove dot gustl dot net Status: No Feedback Bug Type: Apache2 related Operating System: all PHP Version: 4.2.1 New Comment: I also face the same issue. check the below code. Name Name 1 Name 2 Name 3 Go my print_r($_POST) returns as Array ( [a] => Array ( [0] => a [1] => b [2] => c [3] => da[]=a [4] => b [5] => c [6] => d ) ) I get this issue on IE and Firefox. Any Help Previous Comments: [2008-02-19 19:58:33] bob at bob-russell dot net I see this is an old discussion but I hope someone will discover my call for help. There are lots of 'complains' on different web blogs concerning IE 6 or 7 sending form data twice. Most replies suggest that the user is hitting the submit button twice. I don't think this always the case. I am getting the problem almost permanently with both IE 6 and IE 7. but no problem with Firefox or Opera! For info my form data is handled by php. Only login name, password and submit are being sent. I have made the receiving page record a log of it's activities and (only with IE) the page runs twice! The first time with all the $_POST variables empty. The second time they are populated with correct values. These tests are made on a local Apache test setup. The same thing happens on the live web site but the first time sometimes has corrupt data. The second time seems to be ok as on local test. I am at a loss and can't find anything on the web which gets down to this problem. Bob R. Any ideas for a fix (apart of telling all users to go over to Firefox!). [2006-05-15 09:26:02] stevenbg at gmail dot com i have the same problem with ie6 and a big form (multipart/form-data, select, BIG textarea with FCKEditor). i used WPE (winsock packet editor) to capture the packets that IE generated and, yes, the problem is in IE. sadly, this bug is very poorly documentated [2003-09-01 03:51:35] itaka--nothis-- at hotmail dot com I believe it is Internet Explorer 5 and 6. I have seen this happen on Win2k, IIS and ASP. What it looks like is that IE restarts building the formdata after a certain point, sometimes using the same boundary, sometimes using a different boundary. When it uses the same boundary, the formfields that have been already processed, will be repeated. When it uses another boundary, it depends on how the formdata are being parsed: if only the last boundary is being used (the one that is send along as a header), usually there are no problems, although sometimes the first formfield is send corrupted (and missing after parsing). I have seen the behaviour both in IE 5 and 6, although IE 6 seems not so easy to trigger into it. Also there are quite a number of references to this problem in various discussion groups. But no one really knows what is going on and what triggers the bug. I found that it is needed to use multipart/form-data, have an and have a long text in a textarea, which contains non-standard characters. Also having a javascript-submit helps it trigger. other posts refering to this are for example: http://www.houseoffusion.com/cf_lists/cache/4/23/23107.htm http://mathforum.org/epigone/modperl/sweuphendbrong/[EMAIL PROTECTED] [2003-06-26 18:19:37] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2003-06-20 08:55:42] [EMAIL PROTECTED] Can you test 4.3.3RC1? Many Apache2+PHP issues have been fixed since PHP 4.2.2. Reporting bugs with PHP 4.2.2 is pretty much useless, despite what RH ships with. Download 4.3.3 here: http://qa.php.net/ 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: bob at bob-russell dot net Reported By: php at remove dot gustl dot net Status: No Feedback Bug Type: Apache2 related Operating System: all PHP Version: 4.2.1 New Comment: I see this is an old discussion but I hope someone will discover my call for help. There are lots of 'complains' on different web blogs concerning IE 6 or 7 sending form data twice. Most replies suggest that the user is hitting the submit button twice. I don't think this always the case. I am getting the problem almost permanently with both IE 6 and IE 7. but no problem with Firefox or Opera! For info my form data is handled by php. Only login name, password and submit are being sent. I have made the receiving page record a log of it's activities and (only with IE) the page runs twice! The first time with all the $_POST variables empty. The second time they are populated with correct values. These tests are made on a local Apache test setup. The same thing happens on the live web site but the first time sometimes has corrupt data. The second time seems to be ok as on local test. I am at a loss and can't find anything on the web which gets down to this problem. Bob R. Any ideas for a fix (apart of telling all users to go over to Firefox!). Previous Comments: [2006-05-15 09:26:02] stevenbg at gmail dot com i have the same problem with ie6 and a big form (multipart/form-data, select, BIG textarea with FCKEditor). i used WPE (winsock packet editor) to capture the packets that IE generated and, yes, the problem is in IE. sadly, this bug is very poorly documentated [2003-09-01 03:51:35] itaka--nothis-- at hotmail dot com I believe it is Internet Explorer 5 and 6. I have seen this happen on Win2k, IIS and ASP. What it looks like is that IE restarts building the formdata after a certain point, sometimes using the same boundary, sometimes using a different boundary. When it uses the same boundary, the formfields that have been already processed, will be repeated. When it uses another boundary, it depends on how the formdata are being parsed: if only the last boundary is being used (the one that is send along as a header), usually there are no problems, although sometimes the first formfield is send corrupted (and missing after parsing). I have seen the behaviour both in IE 5 and 6, although IE 6 seems not so easy to trigger into it. Also there are quite a number of references to this problem in various discussion groups. But no one really knows what is going on and what triggers the bug. I found that it is needed to use multipart/form-data, have an and have a long text in a textarea, which contains non-standard characters. Also having a javascript-submit helps it trigger. other posts refering to this are for example: http://www.houseoffusion.com/cf_lists/cache/4/23/23107.htm http://mathforum.org/epigone/modperl/sweuphendbrong/[EMAIL PROTECTED] [2003-06-26 18:19:37] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2003-06-20 08:55:42] [EMAIL PROTECTED] Can you test 4.3.3RC1? Many Apache2+PHP issues have been fixed since PHP 4.2.2. Reporting bugs with PHP 4.2.2 is pretty much useless, despite what RH ships with. Download 4.3.3 here: http://qa.php.net/ [2002-10-07 11:19:10] rst at biba dot uni-bremen dot de I could trace the same behaviour in a different script: IE5.0, multipart/formdata and a special char copied from a Winword document. Indeed, I wonder, if it is IE5.0 that is doubling the array, or there is any strange thing (in IE5.0) that causes php to double the array when receiving it. The first is of course a bug in IE5.0. The latter would be one in php. Maybe a developer can sniff the transmitted code and trace if IE5.0 is already doubling the value(s) or if this happens in php's value-handling. René PS: For the time being we use array_unique() to filter out the doubled values in our array but this is not helpful if double values are allowed in an array. 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: stevenbg at gmail dot com Reported By: php at remove dot gustl dot net Status: No Feedback Bug Type: Apache2 related Operating System: all PHP Version: 4.2.1 New Comment: i have the same problem with ie6 and a big form (multipart/form-data, select, BIG textarea with FCKEditor). i used WPE (winsock packet editor) to capture the packets that IE generated and, yes, the problem is in IE. sadly, this bug is very poorly documentated Previous Comments: [2003-09-01 03:51:35] itaka--nothis-- at hotmail dot com I believe it is Internet Explorer 5 and 6. I have seen this happen on Win2k, IIS and ASP. What it looks like is that IE restarts building the formdata after a certain point, sometimes using the same boundary, sometimes using a different boundary. When it uses the same boundary, the formfields that have been already processed, will be repeated. When it uses another boundary, it depends on how the formdata are being parsed: if only the last boundary is being used (the one that is send along as a header), usually there are no problems, although sometimes the first formfield is send corrupted (and missing after parsing). I have seen the behaviour both in IE 5 and 6, although IE 6 seems not so easy to trigger into it. Also there are quite a number of references to this problem in various discussion groups. But no one really knows what is going on and what triggers the bug. I found that it is needed to use multipart/form-data, have an and have a long text in a textarea, which contains non-standard characters. Also having a javascript-submit helps it trigger. other posts refering to this are for example: http://www.houseoffusion.com/cf_lists/cache/4/23/23107.htm http://mathforum.org/epigone/modperl/sweuphendbrong/[EMAIL PROTECTED] [2003-06-26 18:19:37] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2003-06-20 08:55:42] [EMAIL PROTECTED] Can you test 4.3.3RC1? Many Apache2+PHP issues have been fixed since PHP 4.2.2. Reporting bugs with PHP 4.2.2 is pretty much useless, despite what RH ships with. Download 4.3.3 here: http://qa.php.net/ [2002-10-07 11:19:10] rst at biba dot uni-bremen dot de I could trace the same behaviour in a different script: IE5.0, multipart/formdata and a special char copied from a Winword document. Indeed, I wonder, if it is IE5.0 that is doubling the array, or there is any strange thing (in IE5.0) that causes php to double the array when receiving it. The first is of course a bug in IE5.0. The latter would be one in php. Maybe a developer can sniff the transmitted code and trace if IE5.0 is already doubling the value(s) or if this happens in php's value-handling. René PS: For the time being we use array_unique() to filter out the doubled values in our array but this is not helpful if double values are allowed in an array. [2002-06-13 13:27:11] [EMAIL PROTECTED] It happens because some guy at Microsoft was drunken. Infact you are triggering a situation where the IE 5.0 simply sends every form field 2 times. 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: itaka--nothis-- at hotmail dot com Reported By: php at remove dot gustl dot net Status: No Feedback Bug Type: Apache2 related Operating System: all PHP Version: 4.2.1 New Comment: I believe it is Internet Explorer 5 and 6. I have seen this happen on Win2k, IIS and ASP. What it looks like is that IE restarts building the formdata after a certain point, sometimes using the same boundary, sometimes using a different boundary. When it uses the same boundary, the formfields that have been already processed, will be repeated. When it uses another boundary, it depends on how the formdata are being parsed: if only the last boundary is being used (the one that is send along as a header), usually there are no problems, although sometimes the first formfield is send corrupted (and missing after parsing). I have seen the behaviour both in IE 5 and 6, although IE 6 seems not so easy to trigger into it. Also there are quite a number of references to this problem in various discussion groups. But no one really knows what is going on and what triggers the bug. I found that it is needed to use multipart/form-data, have an and have a long text in a textarea, which contains non-standard characters. Also having a javascript-submit helps it trigger. other posts refering to this are for example: http://www.houseoffusion.com/cf_lists/cache/4/23/23107.htm http://mathforum.org/epigone/modperl/sweuphendbrong/[EMAIL PROTECTED] Previous Comments: [2003-07-09 05:03:27] jo_jk at hotmail dot com We are having the same problem but we don't use apache. Arrays are sometimes doubled ( more frequent with IE6 ) Server : W2k pro server web server : IIS 5.0 php : 4.2.3 [2003-06-26 18:19:37] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2003-06-20 08:55:42] [EMAIL PROTECTED] Can you test 4.3.3RC1? Many Apache2+PHP issues have been fixed since PHP 4.2.2. Reporting bugs with PHP 4.2.2 is pretty much useless, despite what RH ships with. Download 4.3.3 here: http://qa.php.net/ [2003-06-20 04:31:14] pranav at vigorsoft dot com This is not bogus. We have also same problems with RH 9.0, apache 2.0.40 and php 4.2.2. [2003-06-02 20:14:57] sbeam at syxyz dot net confirmed on RH 9.0 default setup w/ Apache 2.0.40 and PHP 4.2.2 - this is NOT bogus. Browser used is irrelevant. Please provide fix. 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: jo_jk at hotmail dot com Reported By: php at remove dot gustl dot net Status: No Feedback Bug Type: Apache2 related Operating System: all PHP Version: 4.2.1 New Comment: We are having the same problem but we don't use apache. Arrays are sometimes doubled ( more frequent with IE6 ) Server : W2k pro server web server : IIS 5.0 php : 4.2.3 Previous Comments: [2003-06-26 18:19:37] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2003-06-20 08:55:42] [EMAIL PROTECTED] Can you test 4.3.3RC1? Many Apache2+PHP issues have been fixed since PHP 4.2.2. Reporting bugs with PHP 4.2.2 is pretty much useless, despite what RH ships with. Download 4.3.3 here: http://qa.php.net/ [2003-06-20 04:31:14] pranav at vigorsoft dot com This is not bogus. We have also same problems with RH 9.0, apache 2.0.40 and php 4.2.2. [2003-06-02 20:14:57] sbeam at syxyz dot net confirmed on RH 9.0 default setup w/ Apache 2.0.40 and PHP 4.2.2 - this is NOT bogus. Browser used is irrelevant. Please provide fix. [2003-04-28 18:27:47] mark_andrea at labs dot agilent dot com I have the same duplicating array value problem when posting values from a multiple select box [] array using php 4.2.2. Apache 2.0.40. GET method does not duplicate the values. Happens in Netscape 4.08 and IE 5.5 Even the $HTTP_RAW_POST_DATA has duplicate values: multiselect%5B%5D=one&multiselect%5B%5D=two&multiselect%5B%5D=three&submit=Sendmultiselect%5B%5D=one&multiselect%5B%5D=two&multiselect%5B%5D=three&submit=Send Any clues would be appreciated, Thanks 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: pranav at vigorsoft dot com Reported By: php at remove dot gustl dot net Status: Bogus Bug Type: Unknown/Other Function Operating System: all PHP Version: 4.2.1 New Comment: This is not bogus. We have also same problems with RH 9.0, apache 2.0.40 and php 4.2.2. Previous Comments: [2003-06-02 20:14:57] sbeam at syxyz dot net confirmed on RH 9.0 default setup w/ Apache 2.0.40 and PHP 4.2.2 - this is NOT bogus. Browser used is irrelevant. Please provide fix. [2003-04-28 18:27:47] mark_andrea at labs dot agilent dot com I have the same duplicating array value problem when posting values from a multiple select box [] array using php 4.2.2. Apache 2.0.40. GET method does not duplicate the values. Happens in Netscape 4.08 and IE 5.5 Even the $HTTP_RAW_POST_DATA has duplicate values: multiselect%5B%5D=one&multiselect%5B%5D=two&multiselect%5B%5D=three&submit=Sendmultiselect%5B%5D=one&multiselect%5B%5D=two&multiselect%5B%5D=three&submit=Send Any clues would be appreciated, Thanks [2003-03-14 11:54:39] pe_nospam at clearthis dot knoblach dot remove dot de by the way this problem seems to appear only in conjunction with Apache 2.0.x! Everything seems to work normally on 1.3 Another thing: In this combination (php2.3.x and apache 2.0.x) the infamous phpmyadmin sometimes produces strange bugs doing data inserts/updates. I think this might be related, because the phpmyadmin insert statements sometimes seem to have duplicate keys and sometimes look scrambled. Bye Peter [2003-03-14 10:11:57] pe_nospam at clearthis dot knoblach dot remove dot de This is a serious problem and it is not bogus! It has nothing to do with IE but is a php 4.2.x 4.3.x bug! imorgan (post above) is exactly right. We also watch this behaviour. By the way we also get some strange string fields, looks like some scrambled C string field which was not cleared correctly. Definitley php bug. It was introduced when we updated php 4.0.x to current 4.3.1! (It did not happen in php 4.0.x) Pleeease fix it! Bye Peter [2003-02-09 16:17:00] foo_imorgan_foo at foo_webcon dot ca_foo This is not an IE-only problem. Happens here with Mozilla too, and every other browser I tried. I sniffed the actual protocol exchange, and confirmed that if 5 options are selected, only those 5 are sent to the server. PHP duplicates all except the first item. i.e. 1 submitted: 1 seen, 2 submitted: 3 seem, 3:5, 4:7, 5:9, etc. This is most definitely looks like a PHP bug. (PHP 4.3.0, Apache 2.0.43) 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: sbeam at syxyz dot net Reported By: php at remove dot gustl dot net Status: Bogus Bug Type: Unknown/Other Function Operating System: all PHP Version: 4.2.1 New Comment: confirmed on RH 9.0 default setup w/ Apache 2.0.40 and PHP 4.2.2 - this is NOT bogus. Browser used is irrelevant. Please provide fix. Previous Comments: [2003-04-28 18:27:47] mark_andrea at labs dot agilent dot com I have the same duplicating array value problem when posting values from a multiple select box [] array using php 4.2.2. Apache 2.0.40. GET method does not duplicate the values. Happens in Netscape 4.08 and IE 5.5 Even the $HTTP_RAW_POST_DATA has duplicate values: multiselect%5B%5D=one&multiselect%5B%5D=two&multiselect%5B%5D=three&submit=Sendmultiselect%5B%5D=one&multiselect%5B%5D=two&multiselect%5B%5D=three&submit=Send Any clues would be appreciated, Thanks [2003-03-14 11:54:39] pe_nospam at clearthis dot knoblach dot remove dot de by the way this problem seems to appear only in conjunction with Apache 2.0.x! Everything seems to work normally on 1.3 Another thing: In this combination (php2.3.x and apache 2.0.x) the infamous phpmyadmin sometimes produces strange bugs doing data inserts/updates. I think this might be related, because the phpmyadmin insert statements sometimes seem to have duplicate keys and sometimes look scrambled. Bye Peter [2003-03-14 10:11:57] pe_nospam at clearthis dot knoblach dot remove dot de This is a serious problem and it is not bogus! It has nothing to do with IE but is a php 4.2.x 4.3.x bug! imorgan (post above) is exactly right. We also watch this behaviour. By the way we also get some strange string fields, looks like some scrambled C string field which was not cleared correctly. Definitley php bug. It was introduced when we updated php 4.0.x to current 4.3.1! (It did not happen in php 4.0.x) Pleeease fix it! Bye Peter [2003-02-09 16:17:00] foo_imorgan_foo at foo_webcon dot ca_foo This is not an IE-only problem. Happens here with Mozilla too, and every other browser I tried. I sniffed the actual protocol exchange, and confirmed that if 5 options are selected, only those 5 are sent to the server. PHP duplicates all except the first item. i.e. 1 submitted: 1 seen, 2 submitted: 3 seem, 3:5, 4:7, 5:9, etc. This is most definitely looks like a PHP bug. (PHP 4.3.0, Apache 2.0.43) [2002-10-07 11:19:10] rst at biba dot uni-bremen dot de I could trace the same behaviour in a different script: IE5.0, multipart/formdata and a special char copied from a Winword document. Indeed, I wonder, if it is IE5.0 that is doubling the array, or there is any strange thing (in IE5.0) that causes php to double the array when receiving it. The first is of course a bug in IE5.0. The latter would be one in php. Maybe a developer can sniff the transmitted code and trace if IE5.0 is already doubling the value(s) or if this happens in php's value-handling. René PS: For the time being we use array_unique() to filter out the doubled values in our array but this is not helpful if double values are allowed in an array. 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: pe_nospam at clearthis dot knoblach dot remove dot de Reported By: php at remove dot gustl dot net Status: Bogus Bug Type: Unknown/Other Function Operating System: all PHP Version: 4.2.1 New Comment: by the way this problem seems to appear only in conjunction with Apache 2.0.x! Everything seems to work normally on 1.3 Another thing: In this combination (php2.3.x and apache 2.0.x) the infamous phpmyadmin sometimes produces strange bugs doing data inserts/updates. I think this might be related, because the phpmyadmin insert statements sometimes seem to have duplicate keys and sometimes look scrambled. Bye Peter Previous Comments: [2003-03-14 10:11:57] pe_nospam at clearthis dot knoblach dot remove dot de This is a serious problem and it is not bogus! It has nothing to do with IE but is a php 4.2.x 4.3.x bug! imorgan (post above) is exactly right. We also watch this behaviour. By the way we also get some strange string fields, looks like some scrambled C string field which was not cleared correctly. Definitley php bug. It was introduced when we updated php 4.0.x to current 4.3.1! (It did not happen in php 4.0.x) Pleeease fix it! Bye Peter [2003-02-09 16:17:00] foo_imorgan_foo at foo_webcon dot ca_foo This is not an IE-only problem. Happens here with Mozilla too, and every other browser I tried. I sniffed the actual protocol exchange, and confirmed that if 5 options are selected, only those 5 are sent to the server. PHP duplicates all except the first item. i.e. 1 submitted: 1 seen, 2 submitted: 3 seem, 3:5, 4:7, 5:9, etc. This is most definitely looks like a PHP bug. (PHP 4.3.0, Apache 2.0.43) [2002-10-07 11:19:10] rst at biba dot uni-bremen dot de I could trace the same behaviour in a different script: IE5.0, multipart/formdata and a special char copied from a Winword document. Indeed, I wonder, if it is IE5.0 that is doubling the array, or there is any strange thing (in IE5.0) that causes php to double the array when receiving it. The first is of course a bug in IE5.0. The latter would be one in php. Maybe a developer can sniff the transmitted code and trace if IE5.0 is already doubling the value(s) or if this happens in php's value-handling. René PS: For the time being we use array_unique() to filter out the doubled values in our array but this is not helpful if double values are allowed in an array. [2002-09-29 14:10:17] surface at surface dot hu The same happened with me, but the files which was uploaded duplicated, but the others didn't. Those was also corrupted, two variables bacame three. [2002-06-13 13:27:11] [EMAIL PROTECTED] It happens because some guy at Microsoft was drunken. Infact you are triggering a situation where the IE 5.0 simply sends every form field 2 times. 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: pe_nospam at clearthis dot knoblach dot remove dot de Reported By: php at remove dot gustl dot net Status: Bogus Bug Type: Unknown/Other Function Operating System: all PHP Version: 4.2.1 New Comment: This is a serious problem and it is not bogus! It has nothing to do with IE but is a php 4.2.x 4.3.x bug! imorgan (post above) is exactly right. We also watch this behaviour. By the way we also get some strange string fields, looks like some scrambled C string field which was not cleared correctly. Definitley php bug. It was introduced when we updated php 4.0.x to current 4.3.1! (It did not happen in php 4.0.x) Pleeease fix it! Bye Peter Previous Comments: [2003-02-09 16:17:00] foo_imorgan_foo at foo_webcon dot ca_foo This is not an IE-only problem. Happens here with Mozilla too, and every other browser I tried. I sniffed the actual protocol exchange, and confirmed that if 5 options are selected, only those 5 are sent to the server. PHP duplicates all except the first item. i.e. 1 submitted: 1 seen, 2 submitted: 3 seem, 3:5, 4:7, 5:9, etc. This is most definitely looks like a PHP bug. (PHP 4.3.0, Apache 2.0.43) [2002-10-07 11:19:10] rst at biba dot uni-bremen dot de I could trace the same behaviour in a different script: IE5.0, multipart/formdata and a special char copied from a Winword document. Indeed, I wonder, if it is IE5.0 that is doubling the array, or there is any strange thing (in IE5.0) that causes php to double the array when receiving it. The first is of course a bug in IE5.0. The latter would be one in php. Maybe a developer can sniff the transmitted code and trace if IE5.0 is already doubling the value(s) or if this happens in php's value-handling. René PS: For the time being we use array_unique() to filter out the doubled values in our array but this is not helpful if double values are allowed in an array. [2002-09-29 14:10:17] surface at surface dot hu The same happened with me, but the files which was uploaded duplicated, but the others didn't. Those was also corrupted, two variables bacame three. [2002-06-13 13:27:11] [EMAIL PROTECTED] It happens because some guy at Microsoft was drunken. Infact you are triggering a situation where the IE 5.0 simply sends every form field 2 times. [2002-06-13 12:05:00] php at remove dot gustl dot net this may be true, but do you know how this happens or how I can analyze the problem, because I don't get $HTTP_RAW_POST_DATA when enctype is set to "multipart/form-data", even when I set always_populate_raw_post_data = On. My workarround for now is to put the select post results through array_unique (), 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Unknown/Other Function Operating System: all PHP Version: 4.2.1 New Comment: This is not an IE-only problem. Happens here with Mozilla too, and every other browser I tried. I sniffed the actual protocol exchange, and confirmed that if 5 options are selected, only those 5 are sent to the server. PHP duplicates all except the first item. i.e. 1 submitted: 1 seen, 2 submitted: 3 seem, 3:5, 4:7, 5:9, etc. This is most definitely looks like a PHP bug. (PHP 4.3.0, Apache 2.0.43) Previous Comments: [2002-10-07 11:19:10] [EMAIL PROTECTED] I could trace the same behaviour in a different script: IE5.0, multipart/formdata and a special char copied from a Winword document. Indeed, I wonder, if it is IE5.0 that is doubling the array, or there is any strange thing (in IE5.0) that causes php to double the array when receiving it. The first is of course a bug in IE5.0. The latter would be one in php. Maybe a developer can sniff the transmitted code and trace if IE5.0 is already doubling the value(s) or if this happens in php's value-handling. René PS: For the time being we use array_unique() to filter out the doubled values in our array but this is not helpful if double values are allowed in an array. [2002-09-29 14:10:17] [EMAIL PROTECTED] The same happened with me, but the files which was uploaded duplicated, but the others didn't. Those was also corrupted, two variables bacame three. [2002-06-13 13:27:11] [EMAIL PROTECTED] It happens because some guy at Microsoft was drunken. Infact you are triggering a situation where the IE 5.0 simply sends every form field 2 times. [2002-06-13 12:05:00] [EMAIL PROTECTED] this may be true, but do you know how this happens or how I can analyze the problem, because I don't get $HTTP_RAW_POST_DATA when enctype is set to "multipart/form-data", even when I set always_populate_raw_post_data = On. My workarround for now is to put the select post results through array_unique (), [2002-06-13 10:27:03] [EMAIL PROTECTED] If it only happens with IE, or one version of IE, then it's not a bug in PHP but yet another bug in IE. 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/17739 -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Unknown/Other Function Operating System: all PHP Version: 4.2.1 New Comment: I could trace the same behaviour in a different script: IE5.0, multipart/formdata and a special char copied from a Winword document. Indeed, I wonder, if it is IE5.0 that is doubling the array, or there is any strange thing (in IE5.0) that causes php to double the array when receiving it. The first is of course a bug in IE5.0. The latter would be one in php. Maybe a developer can sniff the transmitted code and trace if IE5.0 is already doubling the value(s) or if this happens in php's value-handling. René PS: For the time being we use array_unique() to filter out the doubled values in our array but this is not helpful if double values are allowed in an array. Previous Comments: [2002-09-29 14:10:17] [EMAIL PROTECTED] The same happened with me, but the files which was uploaded duplicated, but the others didn't. Those was also corrupted, two variables bacame three. [2002-06-13 13:27:11] [EMAIL PROTECTED] It happens because some guy at Microsoft was drunken. Infact you are triggering a situation where the IE 5.0 simply sends every form field 2 times. [2002-06-13 12:05:00] [EMAIL PROTECTED] this may be true, but do you know how this happens or how I can analyze the problem, because I don't get $HTTP_RAW_POST_DATA when enctype is set to "multipart/form-data", even when I set always_populate_raw_post_data = On. My workarround for now is to put the select post results through array_unique (), [2002-06-13 10:27:03] [EMAIL PROTECTED] If it only happens with IE, or one version of IE, then it's not a bug in PHP but yet another bug in IE. [2002-06-13 07:35:51] [EMAIL PROTECTED] A very special (maybe browser only) problem, when I post a form under following conditions: 1. form enctype="multipart/form-data" 2. or with unicode-values 3. and a file upload 4. only from IE 5.0 (30% of my visitors), other browsers ok 5. and you select a value with unicodes the returned array contains the selected values twice, like: ["currency"]=> array(2) { [0]=> string(12) " Euro" [1]=> string(12) " Euro" } the script (www.gustl.at/testmultisel.php): select multiple which are your favorite currencies € Euro $ Dollar and send a file post: "; var_dump ($_POST); echo ""; ?> -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1
#17739 [Com]: form select multiple returns double values
ID: 17739 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Unknown/Other Function Operating System: all PHP Version: 4.2.1 New Comment: The same happened with me, but the files which was uploaded duplicated, but the others didn't. Those was also corrupted, two variables bacame three. Previous Comments: [2002-06-13 13:27:11] [EMAIL PROTECTED] It happens because some guy at Microsoft was drunken. Infact you are triggering a situation where the IE 5.0 simply sends every form field 2 times. [2002-06-13 12:05:00] [EMAIL PROTECTED] this may be true, but do you know how this happens or how I can analyze the problem, because I don't get $HTTP_RAW_POST_DATA when enctype is set to "multipart/form-data", even when I set always_populate_raw_post_data = On. My workarround for now is to put the select post results through array_unique (), [2002-06-13 10:27:03] [EMAIL PROTECTED] If it only happens with IE, or one version of IE, then it's not a bug in PHP but yet another bug in IE. [2002-06-13 07:35:51] [EMAIL PROTECTED] A very special (maybe browser only) problem, when I post a form under following conditions: 1. form enctype="multipart/form-data" 2. or with unicode-values 3. and a file upload 4. only from IE 5.0 (30% of my visitors), other browsers ok 5. and you select a value with unicodes the returned array contains the selected values twice, like: ["currency"]=> array(2) { [0]=> string(12) " Euro" [1]=> string(12) " Euro" } the script (www.gustl.at/testmultisel.php): select multiple which are your favorite currencies € Euro $ Dollar and send a file post: "; var_dump ($_POST); echo ""; ?> -- Edit this bug report at http://bugs.php.net/?id=17739&edit=1