<?php # Script 18.8 - login.php
// This is the login page for the site.
require ('includes/config.inc.php');
$page_title = 'Login';
include ('includes/header.html');
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
require (MYSQL);
// Validate the email address:
if (!empty($_POST['email'])) {
$e = mysqli_real_escape_string ($dbc, $_POST['email']);
} else {
$e = FALSE;
echo '<p class="error">You forgot to enter your email address!</p>';
}
// Validate the password:
if (!empty($_POST['pass'])) {
$p = mysqli_real_escape_string ($dbc, $_POST['pass']);
} else {
$p =