Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("myleagueAPI.php");
- $submit = $_POST['submit'];
- if($submit=='register'){
- // Read in POST variables
- $username = $_POST['username'];
- $password = $_POST['password'];
- $email = $_POST['email'];
- $day = $_POST['dob_d'];
- $month = $_POST['dob_m'];
- $year = $_POST['dob_y'];
- // Perform checks on the data
- // TODO
- // Finally register the account
- Register($username, $password, $email, 'ipoolers', $day, $month, $year);
- echo 'Account registered.';
- die();
- }
- echo '<div align="center"><form action="" method="post">';
- echo 'Username : <input type="text" name="username"><br><br>';
- echo 'Password : <input type="Password" name="password"><br><br>';
- echo 'Email : <input type="text" name="email"><br><br>';
- echo 'Day Of Birth : <input type="text" name="dob_d"><br><br>';
- echo 'Month Of Birth : <input type="text" name="dob_m"><br><br>';
- echo 'Year Of Birth : <input type="text" name="dob_y"><br><br>';
- echo '<input type="submit" name="submit"></form></div>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement