I don't think this thread belongs here
But I'll reply it anyway...
This is an example of a very, very, very simple password authentification using php : 
Code:
<?php
if (!isset($_POST['submit'])){ //if the form isn't posted yet
?>
<html>
<head>
<title>login</title>
</head>
<body>
<form method="post" action="<?=$PHP_SELF;?>">
question : What is my favourite color?<br>
answer : <input type="pasword" name="answer"><br>
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>
<?
}
else { //the form is posted
if ($_POST['answer'] == "red") //if the aswer is red
header("location:member.html"); //go to members area
else
header("location:" .$PHP_SELF); //else, show login form again
}
?>
Bookmarks