Terms and Conditions Form, 1 Checkbox redirect to another page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • david ashby
    New Member
    • Mar 2011
    • 9

    #16
    Sudaraka, thank you very much for your help with this, it was driving me mad, that seems to have fixed it.

    Code:
    <?php
    ob_start();
    session_start();
    ?>
    at the top of the form page

    the php looks like

    Code:
    if(empty($_POST['agree'])) {
    	
        echo "<h3>You must agree before accessing our database</h3>";
    }
    else {
    	//echo "<h3>You agree with our terms</h3>";
        header('Location: ../searcher.php');
    	
    }
    and it seems to bge working now.

    Once again thanks

    Comment

    • Sudaraka
      New Member
      • Jan 2011
      • 55

      #17
      Good to hear you got it working, glad to help.
      Good luck with rest of the project.

      Comment

      Working...