Hi Linuxquestions.org... This is a edited version of my original code (only text has been changed). It is actually an example from a book, wich I have found usefull. But when I type the correct answer in the text field, nothing happens. Wich I really don't understand.
Anyone have an solution?
N.B. Im using PHP 5 and Apache 2
<HTML>
<TITLE> Welcome to Tahiti! </TITLE>
<BODY>
Hello! Please type the right password and you will win a free ticket!<BR>
<?php
$password;
if($password == "thepassword"){
echo "<H1> You have won a free ticket to Tahiti! </H1><BR>";
} else {
?>
<FORM METHOD=POST ACTION=<?php echo $PHP_SELF; ?> >
<INPUT TYPE=PASSWORD NAME=password>
<INPUT TYPE=SUBMIT VALUE="Submit Password">
</FORM>
<?php
}
?>
</BODY>
</HTML>