I'm not sure how that helps me.
To make things clear, I'l post the entire script.
Hope that help, sorry if I'm unclear, I'm not very proficient in php.
<?php
ob_start();
session_start();
?>
<?php include("header.php"); ?>
<?php
/* wrriten: 10-04-08 */
if(isset($_POST['register']))
{
//variables from the form
$username = $_POST['username'];
$password = $_POST['password'];
//hash password
$password = md5($password);
$email = $_POST['email'];
$passcode = $_POST['passcode'];
$date = date("F j Y");
//check that user have filled in everything
$errors = 0;
$emessage = "<center>Sorry, we enounctered the following errors when processing your registration:<br /><ul>";
if(empty($username) || empty($password) || empty($email) || empty($passcode))
{
$errors = 1;
$emessage .= "<li>Sorry, you must fill in <strong>all</strong> fields. Please go back and try again.</li>";
}
if(strlen($_POST['password']) <= 5)
{
$errors = 1;
$emessage .= "<li>Sorry, your password must be <strong>atleast</strong> six characters.</li>";
}
if($_POST['passcode'] !== $somthing){
$errors = 0;
}
else{
$errors = 1;
$emessage .= "<li>Sorry, you din't use the <strong>right</strong> passcode.</li>";
}
//if the user made errors, show messages
if($errors != 0)
{
$emessage .= "</font></center>";
die("$emessage");
}
//connect to the database
mysql_connect("localhost", "******_admin", "*****") or die(mysql_error());
mysql_select_db("*****_lodge") or die(mysql_error());
//perform query, inseting user submitted data
mysql_query("INSERT INTO users (username, password, email, passcode, date) VALUES ('$username', '$password', '$email', '$passcode', '$date')") or die(mysql_error());
//message if everything went well.
echo("<center>Thanks for registering. You may now log in by clicking <a href=\"/lodge/login.php\">here</a>.</font></center>");
}
?>
<?php include("footer.php"); ?>
<?php
ob_end_flush();
?>