Hey there everyone, so what I am looking for is a way kind of the way http://doubleyourdating.com works, where there are opt-in forms everywhere, but after you fill out the form and subscribe, those disappear (I am assuming a cookie is set)
If you can help I would be greatly appreciative!
<?php
setcookie("subscribed",TRUE);
// Rest of your code
?>
and then to determine whether or not to show the form you can use:
<?php
if(isset($_COOKIE["subscribed"]) && $_COOKIE["subscribed"]){
// Don't show the form
}else{
// Show the form
}
?>
You can also you javascript if you are not familiar with PHP, but I would recommend PHP because it is much faster and easier.
Thanks so much for the fast reply… I have never messed around with cookies, or storing them in databases, is there a crash course online for a noob like me?
TopherWelsh saidWell it depends on what you want to do, but these two websites are a good starting point http://www.tizag.com/phpT/ & http://www.w3schools.com/php/
Thanks so much for the fast reply… I have never messed around with cookies, or storing them in databases, is there a crash course online for a noob like me?
