...

View Full Version : prevent viewing until registration html codes



gashour
04-12-2009, 03:43 PM
HI to all

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

until registration

best of luck for all

eschuppe
04-13-2009, 05:10 AM
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.

<?php
session_start();
if (!isset($_SESSION['user']))
{
header("Location: login.php");
}
?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum