Advertisement
Guest User

Help :P

a guest
Mar 31st, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. //-Form Post-//
  2.  
  3. <form method='post'>
  4. <?php
  5. if(isset($_POST['submit'])){
  6. $username = $_POST['username'];
  7. $password = md5($_POST['password']);
  8. $email = $_POST['email'];
  9. if(empty($username) or empty($password)){
  10. echo "<p>Fields Empty</p>";
  11. }else {
  12. mysql_query("INSERT INTO users VALUES('', '$username', '$password', '2', 'a', '$email')");
  13. echo "</div><div id='box'><p>Successfully Registered</p></div>";
  14. }
  15. }
  16. ?>
  17.  
  18.  
  19. //- I want it to not insert multiple values with the same username, -//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement