Hi I have a basic form, all it has on it is a checkbox with terms and conditions, the user has to check the box to say I agree, the problem I am having is the page is echoing the correct information out but is not redirecting the user if they check the box.
The Php code is in include statement in the form page which is layed out via css etc etc.
The code I have is
I have also tried
I have tried using the variables set but nothing works when I do
Can anyone tell me where I am going wrong?
Be grateful for some help as I am getting nowhere fast with this.
Thanks in advance.
The Php code is in include statement in the form page which is layed out via css etc etc.
The code I have is
Code:
$submit = $_POST['submit']; $agree = $_POST['agree']; if (isset ($_POST['agree'])) { echo "<h3>You agree to our terms</h3>"; header('Refresh: 10; URL=searcher.php'); } else echo "<h3>You Disagree, you must agree before using our database</h3>";
Code:
$submit = $_POST['submit']; $agree = $_POST['agree']; if (isset ($_POST['agree'])) { echo "<h3>You agree to our terms</h3>"; header('Location: searcher.php'); } else echo "<h3>You Disagree, you must agree before using our database</h3>";
Can anyone tell me where I am going wrong?
Be grateful for some help as I am getting nowhere fast with this.
Thanks in advance.
Comment