hey, heres my code...
<?
if ($submit = "Login")
{
mysql_connect("JOEYOWNZ", "punkgo", "******") or
die ("Could not connect to database");
mysql_select_db("users") or
dir ("Could not select database");
$result=mysql_query("select * from user where username='$_REQUEST'")
or die ("cant do it");
while ($row=mysql_fetch_array($result)) {
if ($row["password"]==$username )
{
print_f("Successfully Logged In!");
}else{
print("Nope");
}
}
}
?>
and heres whut it says when i try to "login"...
Notice: Undefined variable: username in c:\appserv\www\login.php on line 16
i KNOW username isnt a variable, but whut should i put there?!?!?!?!....thx alot