I need some help with php redirection, cookies, etc. To specify what I exactly want it to do please take a look at description:
I have created files: index.php, contact.php, info.php etc. .. I have also make agecheck.php
And so I what it to, when you go to index.php, contact.php, info.php, etc., then it shall redirect to agecheck.php, where you have the opportunity to click on two buttons YES or NO. If you click YES, it returns you to the previous page that you were redirected from, and if you click NO, it shall just stay on agecheck.php with a note that says:
you have to be 18 to enter the site.
But I will also like to have cookie on, that will remembers if you had clicked YES before, so you shouldn't have to be redirected every time when you enter the site.