Hi there, I have a question related to this topic, i dont know if I should make a new thread or how to make a new thread.
I am making an adult website and I just need a disclaimer and 2 buttons one that verifies age or one that redirects them out of the site.
Here is the code someone told me I would have to use
if (cookie doesn't exist) {
print agreement
if (agreed) {
make cookie
redirect
}
} else {
print real page
}
I was hoping someone could make this in php for me, cause idk what I am doing.
for now agreement will be "You must be at least 18 years of age to enter this website (21 years of age in the USA)"
if they confirm their age to be of majority I want to direct them to verified.php
If they confirm they aren't of majority to go to exit.php