Jump to content

How to make pop form reappear immediately after closing down browser?

Recommended Posts

Hello Friends, My Pop Registration Form works pretty good. However, the problem that I'm having is return of the Form immediately! in case of a new registration or login.How do I get my Pop Registration-Form to re-appear immediately on next visit, or after logging out and shutting down the browser? I have tried everythingincluding changing the cookie/session values and time expire. I am still somewhat new to coding, so please take a look at my code below and if possible giveme a real sample and/or add to or insert it into my code. Thanks! Regards, Dicee Email:Kirkpatrick.rich7@gmmail.com p.s. Please insert real changes to my code: <?php //Ric Kir (script for pop up )//if($_SERVER['REMOTE_ADDR']==''){if(!isset($_COOKIE['user_id']) &&($_COOKIE['user_id']<1)){ require('reg_form_detail.php'); }//} ?>

Link to post
Share on other sites

If you always want it to appear the next time they show up then why have an if statement at all? When should it appear versus not appear? That if statement you have is a problem. You're checking if the cookie is both not set and less than 1. If it's not set then it's not going to have a value to check if it's less than 1.

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...