Make your own free website on Tripod.com

obuy

Home
Runescape
Our Products
Contact Us

Add your logo here

Welcome to our web site!

On this home page, we'll introduce our business and highlight important areas on our site. Here is an example of a style we may use.

Member Login
Username :
Password :
   
----------------------------------------------------------- --------------------------------------------------------- // Check if session is not registered , redirect back to main page. // Put this code in first line of web page. Login Successful --------------------------------------------------------- // Put this code in first line of web page. ------------------------------------------------------

Here we may display a picture of this month's special:

cdgreyscale.jpg
0); } /** * Inserts the given (username, password) pair * into the database. Returns true on success, * false otherwise. */ function addNewUser($username, $password){ global $conn; $q = "INSERT INTO users VALUES ('$username', '$password')"; return mysql_query($q,$conn); } /** * Displays the appropriate message to the user * after the registration attempt. It displays a * success or failure status depending on a * session variable set during registration. */ function displayStatus(){ $uname = $_SESSION['reguname']; if($_SESSION['regresult']){ ?>

Registered!

Thank you , your information has been added to the database, you may now log in.

Registration Failed

We're sorry, but an error has occurred and your registration for the username , could not be completed.
Please try again at a later time.

30){ die("Sorry, the username is longer than 30 characters, please shorten it."); } /* Check if username is already in use */ if(usernameTaken($_POST['user'])){ $use = $_POST['user']; die("Sorry, the username: $use is already taken, please pick another one."); } /* Add the new account to the database */ $md5pass = md5($_POST['pass']); $_SESSION['reguname'] = $_POST['user']; $_SESSION['regresult'] = addNewUser($_POST['user'], $md5pass); $_SESSION['registered'] = true; echo " "; return; } else{ /** * This is the page with the sign-up form, the names * of the input fields are important and should not * be changed. */ ?>

Register

Username:
Password:
Please get in touch to offer comments and join our mailing list for sales and specials!

You can e-mail us at:

Our Company * U.K * Woldwide