Advertisement
AlphaSmack

Untitled

Jun 2nd, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2. include("db.php");
  3.  
  4. if(isset($_REQUEST['signup']))
  5. {
  6.  
  7. $firstname=$_REQUEST['firstname'];
  8. $lastname=$_REQUEST['lastname'];
  9. $username=$_REQUEST['username'];
  10. $email=$_REQUEST['email'];
  11. $password=$_REQUEST['password'];
  12.  
  13. $sql="insert into users (`firstname`,`lastname`,'username',`email`,`password`) VALUES ('$firstname','$lastname','$username','$email','$password')";
  14. $result=mysql_query($sql);
  15. if($result)
  16. {
  17. echo "You are successfully registered";
  18. }
  19. else
  20. {
  21. echo "Registration Failed.! Please try again";
  22. }
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement