Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php
  2.  
  3. include("myleagueAPI.php");
  4.  
  5. $submit = $_POST['submit'];
  6.  
  7. if($submit=='login'){
  8.  
  9.     // Read in POST variables
  10.     $username = $_POST['username'];
  11.     $password = $_POST['password'];
  12.  
  13.     // Perform checks on the data
  14.     // TODO
  15.  
  16.     // Finally login
  17.     Login($username, $password, 'ipoolers');
  18. }
  19.  
  20. echo '<div align="center"><form action="" method="post">';
  21. echo 'Username : <input type="text" name="username"><br><br>';
  22. echo 'Password : <input type="Password" name="password"><br><br>';
  23. echo '<input type="submit" name="login" value="register"></form></div>';
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement