www.webdeveloper.com
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2012
    Location
    Eastern United States
    Posts
    36

    How do i get my registration pop form to reappear immediately?

    Hello
     
    My POP REGISTRATION FORM works pretty good. However, I’m having a problem with a New Registration or a User logging back in due to the FORM not reappear immediately. It come back eventually after closing down the browser or after a 30-40 minute wait. It should appear immediately and prompt User to login each time after closing down the browser? I tried changing the time from 1-year to 1-hour or less, or just leaving time out all together but that didn't work.

    My Question is: How do I get the Registration Form to re-appear immediately on next visit, after logging out and shutting down the browser? I am still very new to coding, so please take a look at my code below and if possible give me a real sample and/or insert it into my code. Thanks!

    Regards,

    Cid
    Email: Kirkpatrick.rich7@gmmail.com


    p.s. Please feel free to edit my code:

    <?php

    if(@$_COOKIE['user_id'] != true) { // If the cookie "user_id" is not set to true

    setcookie('user_id', true, time() + 31563000); // Sets a 1-year long cookie called "user_id" to equal true.

    setcookie('user_id', true); // Sets a session-duration cookie called "user_id" to equal true.

    require('reg_form_detail.php'); // require your form detail page


    //}

    }

    ?>

  2. #2
    Join Date
    Mar 2012
    Posts
    559
    1. What purpose does setting the user_id to true serve??? I do not understand why you are setting this, nor why the user id is a boolean? Do you only intend to support I user???

    2. What is a "pop" form? Whatever it is, why are you using it instead of a standard web page, that will appear automatically every time?

    3. If you are using some form of "pop-up" do you realize that they are generally disabled on most browsers, because they have been so heavily abused? So there is a strong likelihood that pop-ups will not appear anyway.

    I think you need to fundamentally rethink and sketch out what you are trying to achieve.
    Last edited by jedaisoul; 06-21-2012 at 10:39 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



Recent Articles