Hello again -
I am using a login application that I made from the following tutorial: Login In Tutorial (which seems to be offline).
This code just kills the page from loading and displays a message. What I WANT to do is instead of just killing the page, I want to redirect people to the registration page (sign_up.php).
Any help on this one?
Ham
<?php
require('db_connect.php');
// require our database connection
// which also contains the check_login.php
// script. We have $logged_in for use.
if($logged_in == 0) {
die('Sorry you are not logged in,
this area is restricted to registered members.
<a href="login.php">Click here</a> to log in.');
}
// show content
$db_object->disconnect();
// when you are done.
?>