This might work, but would it possible to add a redirect after setting the cookie, this way all the events could happen on one page? Also, what happens if neither yes or no are present. Meaning what if they come to the page without a variable in the URL?
<?php
if($_GET['accept']) == "yes")
{
setcookie("masondisclaimer", "yes", time()+60*60*24*30);
REDIRECT HERE
}
else
{
header("Location: mydomain.com");
exit;
}
?>
<p><a href="disclaimer.php?accept=yes">I accept</a> | <a href="disclaimer.php?accept=no"></p>
Thanks for your help