I want to check if my password in my example abcd is in a array or passwords?
In other words I want to have several options here not just abcd, how can i do this?
<?php
session_start();
if ($_POST['mypassword'] == "abcd"){
$_SESSION['LOGGEDIN'] = True;
echo "<a href=\"index.php\">You are logged in</a>";
} else {
echo "<p><b>FAIL! That password is wrong</b></p>";
$_SESSION['LOGGEDIN'] = False;
}
?>