Agree to Terms
Moderator: General Moderators
-
BillBillJr
- Forum Newbie
- Posts: 9
- Joined: Tue Aug 19, 2008 7:43 pm
- Location: U.S.A.
Agree to Terms
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.
- Bill H
- DevNet Resident
- Posts: 1136
- Joined: Sat Jun 01, 2002 10:16 am
- Location: San Diego CA
- Contact:
Re: Agree to Terms
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.
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.