Guest User

Untitled

a guest
Apr 14th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1.  
  2. <center><strong>
  3. <p><br>
  4. <br><img src="../images/logo.jpg" height="182" width="352" /></p></strong>
  5.  
  6. <?php
  7. $pass=$_POST['pass'];
  8. $pass2=$_POST['pass2'];
  9. if ($pass != $pass2){
  10. 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.";}
  11. if ($pass == $pass2){
  12. echo "Success! Please check your e-mail for a confirmation. You may log in at this time."}
  13. ?>
  14.  
  15. <?php
  16. if ($pass = $pass2)
  17. {$username="diasys";
  18. $password="12345";
  19. $database="diasys";
  20.  
  21. $user=$_POST['user'];
  22. $pass=$_POST['pass'];
  23. $pass2=$_POST['pass2'];
  24. $email=$_POST['email'];
  25. $fname=$_POST['fname'];
  26. $lname=$_POST['lname'];
  27. mysql_connect(localhost,$username,$password);
  28. @mysql_select_db($database) or die( "Unable to select database");
  29. $query = "INSERT INTO users VALUES ('','$user','$pass','$email','$fname','$lname')";
  30. mysql_query($query);
  31.  
  32. mysql_close();
  33.  
  34. }
  35.  
  36.  
  37. ?>
  38.  
  39. <p> &#169; 2011. Dr. Lawrence Philips, Dr. Diana Barb,<br />
  40. Kanav Jain, Karan Patel, Justin Rowland, Chun Yong.<br /></p></center>
Add Comment
Please, Sign In to add comment