Guest User

Untitled

a guest
Mar 3rd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $user=$_POST['username'];
  5. $pass=$_POST['password'];
  6. $repass=$_POST['repassword'];
  7. $mail=$_POST[E-mail'];
  8.  
  9. $con=mysql_connect('localhost', 'user', 'howme1');
  10. mysql_select_db('ryamoo1_user', $con));
  11.  
  12. if($user&&$pass&&$repass&&$mail){
  13. if($pass!=$repass){
  14. echo"Password in both fields don't match!";
  15. }
  16. else{
  17. mysql_query("INSERT INTO ryamoo1_user (id,username,password,email) VALUES ('', '$user', '$pass', '$mail')");
  18. echo"$user has been successfully registered!";
  19. }
  20. }
  21. else{
  22. echo"Please fill out all the fields!";
  23. }
  24.  
  25. ?>
Add Comment
Please, Sign In to add comment