Need to create a very simple form that sets a cookie

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
hockey2112
Forum Newbie
Posts: 1
Joined: Thu Mar 22, 2012 2:17 pm

Need to create a very simple form that sets a cookie

Post by hockey2112 »

I need to create a very simple form page. The page would list terms and conditions of usage of an internet connection. The person would type their full name into a single field, check off a checkbox for "I agree to the terms and conditions", and would then click "submit". This action should set a cookie in their browser that would then allow them to bypass this page the next time they connect to the internet. Their name, the checkbox "answer", and their IP address should then be saved to a MySQL database.

I am just not sure where to start to accomplish those items. Can anyone here advise me on how to accomplish those specific tasks, or maybe point me somewhere that I could find an answer/method?

Thanks!
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Need to create a very simple form that sets a cookie

Post by Celauran »

Post Reply