<html> <head> <title>Hi</title> </head> <h2> Here you can download the picture</h2> <p>Please Enter the Passcode Given to You Here</p> <form name="input" action="password.php"> Password: <input type="password" name="password"/> <p></p> <input type="submit" value="Validate Password"/> </form> </html>
I named that submit.html and then created a password.php file and wrote the following code in that:
<?php
$_POST["password"];
$password=="yaliteo";
if ($_POST["password"]==$password) {
header("Location: /download.html");
} else {
header("Location: /submit.html");
}
?>
After this I made a download.html. But my problem is that when I click on the Validate Password button in submit.html it does go to password.php but it never redirects.
Can anybody help me?
Much appreciated
Thanks

New Topic/Question
Reply



MultiQuote








|