SHARE
TWEET

choicer.php

Misha_ Oct 10th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $name = $_POST['name'];
  3. $email = $_POST['email'];
  4. $phone = $_POST['phone'];
  5. $choice = $_POST['choice'];
  6. $text .= "Имя: $name \n";
  7. $text .= "Почта: $email \n";
  8. $text .= "Номер телефона: $phone \n";
  9. $text .= "Выбор: $choice \n\n";
  10. if (!empty($name) && !empty($email) && !empty($choice) && !empty($phone)) {
  11.     $file = fopen ("choice.txt", "a+");
  12.     fwrite ($file,$text);
  13.     fclose ($file);
  14.     header("Location:table.html");
  15. }
  16. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top