dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: How Can I Make My Pop-Up Form Available Each Time For Registration And/Or Login?

  1. #1
    Join Date
    Jan 2012
    Location
    Eastern United States
    Posts
    38

    How Can I Make My Pop-Up Form Available Each Time For Registration And/Or Login?

    I just want to make my Pop-Up Form available each time for registration and/or login?
    Is there anyone out there that can help me with this?

    Here is my code:

    Please Advise I would be most thankful!

    Cid

    Email:

    Kirkpatrick.rich7@gmail.com


    <?php

    // Kir Ric (script for pop up )

    //if($_SERVER['REMOTE_ADDR']=='115.240.51.183'){

    if(!isset($_COOKIE['user_id']) &&($_COOKIE['user_id']<1)){

    require('reg_form_detail.php');

    }

    //}
    ?>

  2. #2
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,114
    Don't post your email or you will get a ton of spam!

    Do this instead:
    Email me

  3. #3
    Join Date
    Aug 2012
    Posts
    11
    You can make popup with server side code such as php.
    You need clientside codes like javascript to do so.

  4. #4
    Join Date
    Jan 2012
    Location
    Eastern United States
    Posts
    38

    How do I convert my php code to Javascript?

    Quote Originally Posted by saranuts View Post
    You can make popup with server side code such as php.
    You need clientside codes like javascript to do so.
    Thanks for your help!

    Can you show me an example of using javascript?
    Heres my code:

    <?php

    //Kir Ric (script for pop up )

    //if(!empty($_SERVER['REMOTE_ADDR']=='115.240.51.183'){

    if(@!isset($_COOKIE['user_id']) || ($_COOKIE['user_id']<1)){
    setCOOKIE('user_id', true, time() + 60); // Sets a 60-seconds long COOKIE called "user_id" to

    equal true;

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

    }

    //}

    ?>

  5. #5
    Join Date
    Jan 2012
    Location
    Eastern United States
    Posts
    38
    Thanks for your help!

    Can you show me an example of using javascript?
    Heres my code:

    <?php

    //Kir Ric (script for pop up )

    //if(!empty($_SERVER['REMOTE_ADDR']=='115.240.51.183'){

    if(@!isset($_COOKIE['user_id']) || ($_COOKIE['user_id']<1)){
    setCOOKIE('user_id', true, time() + 60); // Sets a 60-seconds long COOKIE called "user_id" to

    equal true;

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

    }

    //}

    ?>

Thread Information

Users Browsing this Thread

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

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