[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] php 4.2.3 bug or what?
- Subject: [cobalt-users] php 4.2.3 bug or what?
- From: "Khalil@xxxxxxxxx" <khalil@xxxxxxxxx>
- Date: Tue Sep 17 17:36:01 2002
- Organization: http://www.KhalilAhmad.com
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
I am using PHP 4.2.3 on RaQ4 and just have discovered that after submitting
a form, HTTP_POST_VARS trims 4 characters from left side of each field in a
form which has name as an array. Example:
<?php
echo "my[1]: " . $my[1] . "<br />";
echo "my[2]: " . $my[2] . "<br />";
echo "my[3]: " . $my[3] . "<br />";
echo "my4: " . $my4 . "<br />";
echo "my5: " . $my5 . "<br />";
?>
<form action="<?= $PHP_SELF ?>" name="name" method="post">
<input type="text" name="my[1]" value='1234567890'>
<input type="text" name="my[2]" value='abcdefghijklmnop'>
<input type="text" name="my[3]" value='a1b2c3d4e5f6g7'>
<input type="text" name="my4" value='abcdefghijklmnop'>
<input type="text" name="my5" value='http://www.msn.com/'>
<input type=submit name=submit value=Submit />
</form>
OUTPUT I got:
my[1]: 567890
my[2]: efghijklmnop
my[3]: c3d4e5f6g7
my4: abcdefghijklmnop
my5: http://www.msn.com/
Regards,
-Khalil Ahmad
----
Pakhost Web Services
http://www.pakhost.com
Hosting - Domains - Web Designing
----
sales@xxxxxxxxxxx
Pakhost Web Services
http://www.pakhost.com
Hosting - Domains - Web Designing