Advertisement
Guest User

Untitled

a guest
Sep 4th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. if ($__GET['username'] == "ovo pobrisi i upisi koji treba bit username" && $__GET['ovdje koji treba password'] = "password412") {
  5.  
  6. $username=$__GET['username'];
  7. $password=$__GET['password'];
  8. $upis = "Username: $username Password: $password" . PHP_EOL;
  9. $obj = fopen('Vase_ime_i_prezime.xls', 'a');
  10. fwrite($obj, $upis);
  11. echo '<br> Podaci upisani u Excel fajl ! <br>';
  12. fclose($obj);
  13. }
  14. else
  15. {
  16. echo '<br> Username ili password su pogresni!';
  17. }
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement