PDA

View Full Version : bug in httpd/php submitted POST data


ADDiCT
04-07-2004, 10:14 AM
<html>
<head>
<title>Create new account</title>
</head>
<body>

<?

print_r($_POST);

?>
<hr>
<form name="adduser" method="post" action="bug.php">
<table>
<tr>
<td>Username: </td>
<td><input name="username" type="text" maxlength="32"></td>
</tr>
<tr>
<td>Password:</td>
<td><input name="password" type="password" maxlength="32"></td>
</tr>
<tr>
<td>Tagline:</td>
<td><input name="tagline" type="text" maxlength="96"></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr align="center">
<td colspan="2"><input name="Submit" type="submit" value="Create account"></td>
</tr>
</table>
</form>

</body>
</html>


-> gives $_POST arrays like this:
Array ( [/png,image/jpeg,image/gif;q] => 0.2,*/*;q=0.1 )
Array ( [0,en;q] => 0.9 )

On opera 7.23 and firefox 0.8; IE6 seems to work fine.

ADDiCT
04-07-2004, 10:32 AM
Hmm, after restarting both 'broken' browsers they seem to show it correctly again.
Didn't touch the php file, nor restart ioFTPD.
I'll let u know if happens again.

Edit: ok, it's happening again (all the time) :)