Ok first let's show the php behind the form, then we will see the code for the form.
Accept.php
<?php if ($choose == "yes") // If they do accept.. { include("accepted.html"); } // Include the page else // If they do not accept.. { print("Sorry, you abide by the terms!"); } // Print the message ?>
Ok the first part if ($choose == "yes")
What this is doing is if the user chooses to abide by your terms, they will be redirected to accepted.html or what ever you choose to name the file.
Then we have an else statement if they choose no they get a message that sais you must abide by the terms.
Now for the form.
TOS.html
<form action="accept.php" method="post"> <textarea name="terms">Your tos go here.</textarea><br> Do you accept these terms? <input type="radio" name="choose" value="yes">Yes <input type="radio" name="choose" value="radiobutton">No<br> <input type="submit" name="Submit" value="Next"> </form>
Ok first we tell the form what file is doing the processing, then what method are we getting the data. Then you put your terms of service after the <textarea name="terms"> then you give the user 2 options yes or no. Then The submit button which will send the data through accept.php and send them to accepted.html or echo the error message.
Well hope you use this, and post any comments you have on this short tutorial. I welcome all comments/criticism.