E1ON

Untitled

Jan 18th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['numberOfGame'] and isset($_POST['yourPassword']) {
  4.  
  5. $file = 'people.txt'; // Файл
  6.  
  7. // Открываем файл для получения существующего содержимого
  8. $current = file_get_contents($file);
  9.  
  10. // Добавляем данные
  11. $current = "numberOfGame: ".$_POST['numberOfGame'].", yourPassword: ".$_POST['yourPassword'];
  12. // Пишем содержимое обратно в файл
  13.  
  14. file_put_contents($file, $current);
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment