Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?php
  2. // Connect to database
  3.  
  4. require "dbconn.php";
  5.  
  6. // Copy the variables that the form placed in the URL
  7. // into these three variables
  8. $username = $_GET['username'];
  9. $password = $_GET['password'];
  10. $email = $_GET['email'];
  11. $name = $_GET['name'];
  12. $surname = $_GET['surname'];
  13. $gender = $_GET['gender'];
  14. $dob = $_GET['dob'];
  15. $address1 = $_GET['address1'];
  16. $address2 = $_GET['address2'];
  17. $county = $_GET['county'];
  18. $postcode = $_GET['postcode'];
  19. $tel = $_GET['telephone'];
  20. $mob = $_GET['mobile'];
  21. $work = $_GET['work'];
  22. $disab = $_GET['disab'];
  23. $medication = $_GET['medication'];
  24.  
  25.  
  26. // set up the query using the values that were passed via the URL from the form
  27.  
  28. $query = "INSERT INTO player VALUES ('','".$name."','".$surname."','".$gender."','".$dob."','".$email."','".$address1."','".$address2."','".$county."','".$postcode."','".$tel."','".$mob."','".$work."','','','','".$disab."','".$medication."','','')";
  29. $query = "INSERT INTO login VALUES ('".$username."','".$password."','Player')";
  30. // execute the query
  31.  
  32. $results = mysql_query($query)
  33. or die(mysql_error());
  34.  
  35. // jump to the next page
  36.  
  37. header( 'Location:regdone.php');
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement