La pagina che vuoi protegere deve per forza di cose avere estensione .php
ciaoCodice PHP:
<?
session_start();
if ( empty( $first_name ) ) {
?>
This page requires you to login before it can be viewed. Login [url="index.htm"]Here[/url], Or Signup For Your
Free Account [url="join_form.php"]Here[/url]
<?
} else {
?>
<html>
<head>
</head>
<body>
</body>
</html>
<?php
}
?>


Rispondi quotando