Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center><strong>
- <p><br>
- <br><img src="../images/logo.jpg" height="182" width="352" /></p></strong>
- <?php
- $pass=$_POST['pass'];
- $pass2=$_POST['pass2'];
- if ($pass != $pass2){
- echo "There was an error. The password and the confirmation password do not match. Please click the back button on your browser and type in the same password.";}
- if ($pass == $pass2){
- echo "Success! Please check your e-mail for a confirmation. You may log in at this time."}
- ?>
- <?php
- if ($pass = $pass2)
- {$username="diasys";
- $password="12345";
- $database="diasys";
- $user=$_POST['user'];
- $pass=$_POST['pass'];
- $pass2=$_POST['pass2'];
- $email=$_POST['email'];
- $fname=$_POST['fname'];
- $lname=$_POST['lname'];
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $query = "INSERT INTO users VALUES ('','$user','$pass','$email','$fname','$lname')";
- mysql_query($query);
- mysql_close();
- }
- ?>
- <p> © 2011. Dr. Lawrence Philips, Dr. Diana Barb,<br />
- Kanav Jain, Karan Patel, Justin Rowland, Chun Yong.<br /></p></center>
Add Comment
Please, Sign In to add comment