Hi all,
does any one know a simple script that will allow me to check a username against a password in a mysql database and if corrct include ./secure/index.php and if it is incorrect include ./denied.php
The login page is seperate and has 2 input boxes, Username and password
My current login script is:
<? if (($username == "User1") AND ($password == "Password")){
echo ("<A HREF=\"./secure/index.php"></A>");
}ELSE{
echo ("<A HREF=\"./denied.php\"></A>");
}
?>
And you can see it is utter rubbish, but im proud of myself, my first proper PHP script! lol
As you can tell i am VERY new to php, and i need to learn more for MYSQL/PHP!
Thanks so much in advance
Matt