View Full Version : prevent viewing until registration html codes

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

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

until registration

best of luck for all

04-13-2009, 06: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.

if (!isset($_SESSION['user']))
header("Location: login.php");