<?php
if($_POST["password2"] == $_COOKIE["password"]) {
header("Location: home_page.php");
} else {
if($_POST["password2"] == $_COOKIE["password"]) {
header("Location: home_page.php");
}
header("Location: page2.php");
}
?>
Made by Thijs Aarnoudse