Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $name = $_POST['name'];
- $email = $_POST['email'];
- $phone = $_POST['phone'];
- $choice = $_POST['choice'];
- $text .= "Имя: $name \n";
- $text .= "Почта: $email \n";
- $text .= "Номер телефона: $phone \n";
- $text .= "Выбор: $choice \n\n";
- if (!empty($name) && !empty($email) && !empty($choice) && !empty($phone)) {
- $file = fopen ("choice.txt", "a+");
- fwrite ($file,$text);
- fclose ($file);
- header("Location:table.html");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement