Tick box on form

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
scorpio90
Forum Newbie
Posts: 23
Joined: Wed Mar 10, 2010 10:45 am
Location: Newcastle

Tick box on form

Post by scorpio90 »

Hi can anyone please tell me how i can include a tick box onto my form, as i have terms and conditions, therefore if the box isnt ticked i dont want the user to be able to submit the form.

if anyonecan help this would be great thank you.
DaiLaughing
Forum Commoner
Posts: 76
Joined: Thu Jul 16, 2009 8:03 am

Re: Tick box on form

Post by DaiLaughing »

You won't be able to stop them submitting as the PHP will only run once the form is POSTed. You could use Javascript or just bounce them back to the form once you find it is not completed.
Post Reply