Why dont you use:
- PHP: Select all
if ($_POST["Psword"] != "MyPassword")
{
header("Location: http://www.google.co.uk");
}
OR if you want your JavaScript to work.. you have to escape the ".
- PHP: Select all
<?php
if ($_POST["Psword"] != "MyPassword")
{
echo "<script type=\"text/javascript\">window.location=\"http://www.google.com\"</script>";
}
?>
Good luck!