<h1>Registered!</h1>
<p>Thank you <b><? echo $uname; ?></b>, your information has been added to the database, you may now <a href="main.php" title="Login">log in</a>.</p>

<?
}
else{
?>

<h1>Registration Failed</h1>
<p>We're sorry, but an error has occurred and your registration for the username <b><? echo $uname; ?></b>, could not be completed.<br>
Please try again at a later time.</p>

echo "You are not currently logged in, logout failed. Back to <a href=\"main.php\">main</a>";

}

else{

/* Kill session variables */

unset($_SESSION['username']);

unset($_SESSION['password']);

$_SESSION = array(); // reset session array

session_destroy(); // destroy session.

echo "<h1>Logged Out</h1>\n";

echo "You have successfully <b>logged out</b>. Back to <a href=\"main.php\">main</a>";

}

?>

</body>

</html>

Thas perhaps the simplest one you could have. You can get into user ranks and levels which will get them certain features. Just look at the code carefully and it should be easy for you to customize it.

pritesh_a

Graduate

Posts: 158

Loc: South London/UK

3+ Months Ago

Thanks, but i have not installed any php software,
i have only installed IIS
will all the above still work?