Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Pagina de inregistrare</title>
  4. </head>
  5. <body>
  6. <form action="register.php" method="POST">
  7. Username: <input type="text" name="username">
  8. <br />Password: <input type="password" name="password">
  9. <br />Cornfirm password: <input type="password" name="repassword">
  10. <br />Email: <input type="text" name="eamil">
  11. <br /><input type="submit" name="Register"> or <a href="login.php">Login</a>
  12. </form>
  13. <body>
  14. </html>
  15.  
  16.  
  17. <?php
  18. require('bazadate.php');
  19. $username = @$_POST['username'];
  20. $password = @$_POST['password'];
  21. $repassword = @$_POST['repassword'];
  22. $emai = @$_POST['emal'];
  23.  
  24.  
  25. if (isset($_POST['submit']))
  26. {
  27. if($query = mysql_query("INSER INTO users ('id', 'username', 'password', 'email') VALUES ('', '".$username."', '".$password."', '".$email."')"))
  28. echo "Succes";
  29. else
  30. echo "Fail";
  31. }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement