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 users where username='$username'")
or die ("cant do it");
while ($row=mysql_fetch_array($result)) {
if ($row["password"]==$password )
{
printf("Successfully Logged In!");
}else{
print("Nope");
}
}
}
?>
i know that $username is not a variable, but when i change it to like, $_REQUEST it says it cant do it......then whe i clikc login, it brings up this,
Notice: Undefined variable: username in c:\appserv\www\login.php on line 14
cant do it
anyone know why????thx/