I've created a login page but only the header is showing up in the browser.
Here's some of the code for the page:
<?php # login.php
// This is the login page for the site.
// Include the configuration file for error management.
require_once ('./includes/config.inc.php');
// Set the page title and include the HTML header.
$page_title = 'Login';
include ('./includes/header.html');
// Check if the form has been submitted.
if (isset($_POST['submitted']))
{
// Connect to the database.
require_once('./mysql_connect2.php');
...etc...
// Close the database connection.
mysql_close();
}
?>
<h1>Login</h1>
<p>Your browser must allow cookies in order to log in.</p>
<form action="login.php" method="post">
<fieldset>
<p><b>Email address:</b> <input type="text" name="email" size="20" maxlength="40" value="<?php
if (isset($_POST['email'])) echo $_POST['email']; ?>" /></p>
<p><b>Password:</b> <input type="password" name="password" size="20" maxlength="40" /></p>
<div align="center"><input type="submit" name="submit" value="login" /></div>
<input type="hidden" name="submitted" value="TRUE" />
</fieldset>
</form>
<?php
// Include the HTML footer.
include ('./includes/footer.html');
?>
Any ideas about what I've done wrong or missed out?