So basicly i made a script which i insert into my index.php file, user must agree to terms before they can access the site, the issue i'm having right now is with this part of the code <div style="width: 280px; height: 37px;"> <div class="button_enter"><a target="_parent" href="http://www.mysite.com/index.php?option=agree">ENTER</a></div> <div class="button_cancel"><a href="http://google.com/">LEAVE</a></div> PHP: Once i click on Enter i'm going to http://www.mysite.com/index.php?option=agree which is the same popup again same issue if i change the url to http://mysite.com etc Any idea how to fix this ??
Perhap you should use a form to "POST" to index.php, and use php to set a session cookie. you could then use php to output the form only if the session cookie is not there.
yeah. agreeing to terms is kind've an authentication issue. and for most authentications you may want to look into something serverside. js is clientside. I'm still not quite sure of the question yet. it seems like you are changing the HREF to a different url and its still giving you the same page?