RawliJr
05-21-2006, 06:13 PM
This is my login.php
<html>
<body>
<?php
if (isset($_COOKIE["uname"]))
echo "Welcome " . $_COOKIE["uname"] . "!<br />";
else
echo "You are not logged in!<br />";
?>
</body>
</html>
What im trying to do is if i have the right password and right username it lets me in, but if one or another is wrong i want it to say something like Invalid username or password.And i dont know what i would put for the code so can i have some help please
And do i need to set up a database or any mysql tables?:mad:
Thanks,
Rawli
<html>
<body>
<?php
if (isset($_COOKIE["uname"]))
echo "Welcome " . $_COOKIE["uname"] . "!<br />";
else
echo "You are not logged in!<br />";
?>
</body>
</html>
What im trying to do is if i have the right password and right username it lets me in, but if one or another is wrong i want it to say something like Invalid username or password.And i dont know what i would put for the code so can i have some help please
And do i need to set up a database or any mysql tables?:mad:
Thanks,
Rawli