I need a script which will redirect and allow the user to view a single page by entering a 6digit code, which has been emailed to them in a form box on the home page..
Replace the "Page" with the page u want it to redirect to.
<?php
$pass = $_GET["password"]; // Retrieve $pass variable from HTTP's GET array
if ($password == "pass") include("page3.php");
if ($password == "pass") include("page2.php");
if ($password == "pass") include("page1.php");