Page 1 of 1

Agree to Terms

Posted: Sun Aug 24, 2008 5:14 pm
by BillBillJr
I need help seeing if someone agreed to my Terms of Use or not. What is the best way for doing this, note: this will be used on a registration form.

Re: Agree to Terms

Posted: Sun Aug 24, 2008 7:24 pm
by Bill H
Use a checkbox on the form. Then in processing the form use isset($_POST['checkbox_name']) to make sure they checked it before proceeding.

Or use a pair of radio buttons with the same name, one with a value of "yes" and one with a value of "no." Set the "no" one as checked in the form and then in processing the form make sure that the $_POST['button_name'] == "yes" in order to proceed.