Advertisement
Hiitmarqes

Untitled

Aug 16th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['submit']))
  4. {
  5. $name = $_POST['textdata'];
  6. $phone = $_POST['textdata1'];
  7. $fp = fopen('lista.txt', 'a+');
  8. fwrite($fp, $name."\n".$phone);
  9. fclose($fp);
  10. }
  11. ?>
  12. <!DOCTYPE html>
  13. <html lang="en">
  14. <head>
  15. <meta charset="UTF-8">
  16. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  17. <title>Document</title>
  18. </head>
  19. <body>
  20.  
  21. <form action="config.php" method="post">
  22. Enter Your Text Here:<br>
  23. <input type="text" name="textdata" placeholder="Seu Nome"><br>
  24. Phone:<br>
  25. <input type="text" name="textdata1" placeholder="Phone"><br>
  26. <input type="submit" name="submit">
  27.  
  28. </form>
  29.  
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement