Here is the form
<form method="post" action="member.php">
<table align=center>
<tr>
<td>Username:</td>
<td><input type="text" name="username"></td></tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passwd"></td></tr>
<tr>
<td colspan=2 align=center>
<input type=submit value="Log in"></td></tr>
</table></form>
Here is the member.php that is trying to access it
<?
// include function files for this application
require_once("include_fns.php");
session_start();
if($username == "")
echo "Nothing in username";
if ($username && $passwd)
// they have just tried logging in
{
if (login($username, $passwd))
{
// if they are in the database register the user id
$valid_user = $user;
session_register("valid_user");
}
else
{
// unsuccessful login
do_html_header("Problem:");
echo "You could not be logged in.
You must be logged in to view this page.";
do_html_url("login.php", "Login");
do_html_footer();
exit;
}
}
do_html_header("Home");
check_valid_user();
// give menu of options
//display_user_menu();
do_html_footer();
?>