Please help me. I have a problem with my login page, which worked fine
during the last one month. I have'nt made any changes in it. but from
yesterday on, it seems that my PHP code receives wrong POST variables.
This is my HTML code piece which just produces login form:
<form name="login" action="default.php" method="post">
UserName:<input type="text" name="username" size="15" maxlength="20"
/>
Password:<input type="password" name="password" size="15"
maxlength="20" />
.....
</form>
and this is a piece of PHP code, in default.php, in which I have made
some changes to be able to track the problem:
$bh=$HTTP_POST_VARS;
if( count($bh) )
{
if( !in_array("username",array_keys($bh)) )
{
reset($bh);
while( list($key,$val) = each($bh) )
echo ">$key< .... >$val<<br>";
die("Submittinig variables invalid...1");
}
if( !in_array("password",array_keys($bh)) )
{
reset($bh);
while( list($key,$val) = each($bh) )
echo ">$key< .... >$val<<br>";
die("Submittinig variables invalid...2");
}
....
....
....
}
and this is the result:
username+AAA-'cc.. some junk characters< .... >test<
password+AAA-y.. some junc characters< .... >test<
.....
Submitting variables invalid...1
any idea? please help...
Thanks,
-Shaigany