Agree to Terms

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
BillBillJr
Forum Newbie
Posts: 9
Joined: Tue Aug 19, 2008 7:43 pm
Location: U.S.A.

Agree to Terms

Post 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.
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Re: Agree to Terms

Post 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.
Post Reply