Web Analytics Made Easy -
StatCounter prevent viewing until registration html codes - CodingForum

Announcement

Collapse
No announcement yet.

prevent viewing until registration html codes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • prevent viewing until registration html codes

    HI to all

    please i need html code that prevent visitor from viewing the content

    until registration

    best of luck for all

  • #2
    This can be accomplished easily in PHP especially if you have a log in script. This piece of code is placed at the top of documents to keep people from getting access to pages if they are not logged in.
    Code:
    <?php
    session_start();
    if (!isset($_SESSION['user']))
    {
    header("Location: login.php");
    }
    ?>

    Comment

    Working...
    X