View Single Post
Old 04-07-2004, 10:14 AM  
ADDiCT
Senior Member
 
Join Date: Aug 2003
Posts: 517
Default bug in httpd/php submitted POST data

Code:
<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 is offline   Reply With Quote