<html> <title>Enter the password</title> <head> <style> p{ color:red; } </style> </head> <body> <p>Please enter the pass word or key to visit this site.</p> <form action="incog.php" method="post"> Passoword: Do not hack!<input type="password" name = "pass"> <input type="submit" value="Go to site"> </form> </body> </html>
<?php if ($_POST['pass'] == 'password') header("Location: hello.html"); else echo "Go away" ?>
<!DOCTYPE html> <html> <script> function thisFunction() { window.location.href = "password.php"; } </script> <body onload="thisFunction()"> <h1>Hello you have reached the secret page</h1> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)