"; } else { $username = $_POST['DBusername']; $result = sql("S", "users", "`username`='$username'", "1", "", ""); $num = @mysql_num_rows($result); if ($num > 0) { $message .= "The username is already in use, Please select another.
"; } } if ($_POST['password1'] != $_POST['password2']) { $message .= "Your passwords do not match.
"; } else { $_POST['DBpassword'] = $_POST['password1']; } if ($_POST['email1'] != $_POST['email2']) { $message .= "Your email addresses do not match.
"; } else { $_POST['DBemailREQ'] = $_POST['email1']; } if ($_POST['DBfirstnameREQ'] == "") { $message .= "You forgot to enter your first name.
"; } if ($_POST['DBsurnameREQ'] == "") { $message .= "You forgot to enter your surname.
"; } if ($_POST['DBaddress1REQ'] == "") { $message .= "You forgot to enter your address line 1.
"; } if ($_POST['DBtownREQ'] == "") { $message .= "You forgot to enter your postal town.
"; } if ($_POST['DBpostcodeREQ'] == "") { $message .= "You forgot to enter your post code/area code.
"; } else { strtoupper($_POST['DBpostcodeREQ']); } if ($_POST['DBphone1REQ'] == "") { $message .= "You forgot to enter your phone number.
"; } if ($_POST['DBpassword'] == "") { $message .= "You forgot to enter your password.
"; } if ($_POST['DBemailREQ'] == "") { $message .= "You forgot to enter your email address.
"; } if ($message == "") { session_start(); // add to db $query = checkpost($_POST, "INSERT"); $result = sql("INS", "users", $query, "", "", ""); if (!$result) { } else { // send emails $to = $_POST['email1']; $subject = $_POST['DBfirstnameREQ'] . ", Thanks for Registering with Jivili"; $message = '
Dear ' . $_POST['DBfirstnameREQ'] . ',

Thanks for registering with Jivili, please store the following login details for your records:

Your Username: ' . $_POST['DBusername'] . '
Your Password: ' . $_POST['DBpassword'] . '

If you have any questions about the website or if you are searching for a particular model then please do not hesistate to contact us either by email at sales@jivili.com or by phoning us on 01636 627020.

Thanks again,

Jivili Sales Team


http://www.jivili.co.uk/

'; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "To: " . $_POST['DBfirstnameREQ'] . " <" . $_POST['DBemailREQ'] . ">\r\n"; $headers .= "Bcc: Dean \r\n"; $headers .= "From: Jivili \r\n"; mail($to, $subject, $message, $headers); $message = "Thanks for registering, you can now login using the form below:"; } $login = TRUE; } } if ($login == TRUE) { $message = "Thanks for registering, you can now login to the site using your details"; ?>
Registration

Login
Please use the form below to sign in. If you are having problems then please email us

'; } ?>
' . $message . '
If you are an existing Jivili user please login below:

Username :
Password :
Stay Logged In
If your new to Jivili then please create an account, it only takes a few seconds!
Registration

Registering is easy, just fill in the form below and press register. We store your details so you dont have to do it again, but dont worry, we never pass your details onto other companies. (* = Required Field)

Name*
Surname*
Address Line 1*
Address Line 2
Town*
County
Post Code*
Country*
Phone Number*
Mobile Number
E-Mail Address*
Confirm E-Mail*
Username*
Password*
Confirm Password*


Confidentiality Promise and Data Protection - no email addresses or personal data will ever be shared with third parties unless permission is given to do so.