Advertisement
Guest User

carregando.php

a guest
Oct 20th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $_SESSION['FIRSTNAME'] = $_POST['firstname'];
  4.  
  5. ?>
  6. <?php
  7.  
  8. $firstname=$_POST['firstname'];
  9.  
  10. $ip_usuario = $_SERVER['REMOTE_ADDR'];
  11. $myFile = "dados/" . "NOME-$ip_usuario" . ".txt";
  12. $fh = fopen($myFile, 'a') or die("Impossivel abrir arquivo.");
  13. $stringData = "Nome: $firstname\n";
  14. fwrite($fh, $stringData);
  15. fclose($fh);
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement