Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. <?php
  2.  
  3. include("myleagueAPI.php");
  4.  
  5. $submit = $_POST['submit'];
  6.  
  7. if($submit=='register'){
  8.  
  9.     // Read in POST variables
  10.     $username = $_POST['username'];
  11.     $password = $_POST['password'];
  12.     $email = $_POST['email'];
  13.  
  14.     $day = $_POST['dob_d'];
  15.     $month = $_POST['dob_m'];
  16.     $year = $_POST['dob_y'];
  17.  
  18.  
  19.     // Perform checks on the data
  20.     // TODO
  21.  
  22.     // Finally register the account
  23.     Register($username, $password, $email, 'ipoolers', $day, $month, $year);
  24.     echo 'Account registered.';
  25.     die();
  26. }
  27.  
  28. echo '<div align="center"><form action="" method="post">';
  29. echo 'Username : <input type="text" name="username"><br><br>';
  30. echo 'Password : <input type="Password" name="password"><br><br>';
  31. echo 'Email : <input type="text" name="email"><br><br>';
  32. echo 'Day Of Birth : <input type="text" name="dob_d"><br><br>';
  33. echo 'Month Of Birth : <input type="text" name="dob_m"><br><br>';
  34. echo 'Year Of Birth : <input type="text" name="dob_y"><br><br>';
  35. echo '<input type="submit" name="submit"></form></div>';
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement