I have made a simple login page in html with a if else login script in php. The only problem i run into is how to add multiple users. When I do add another user it gives me both the Logged in statement and the "you have not requested a login form statement" I will put the code down below. Any help is appreciated.
<?php
$username = $_POST['reg_user'];
$password = $_POST['pass'];
//ctoney ctoney123
if ($username =='ctoney' AND $password=='ctoney123') {
echo "You have logged in!";
}
if ($username =='croney' AND $password=='ctoney123') {
echo "you have logged in!";
else {
echo "You have not requested a login form!";
}
?>