Form/Information.php

23 lines
581 B
PHP
Raw Normal View History

2024-05-17 14:40:45 +03:00
<?php
$surname = $_REQUEST["surname"];
$name = $_REQUEST["name"];
$patronymic = $_REQUEST["patronymic"];
$gender = $_REQUEST["gender"];
$DateOfBirth = $_REQUEST["DateOfBirth"];
$countryCode = $_REQUEST["countryCode"];
$phoneNumber = $_REQUEST["phoneNumber"];
$Email = $_REQUEST["email"];
$file = fopen("Information.txt", "a");
fwrite($file,$surname . " " . $name . " " . $patronymic . "; ");
fwrite($file, $DateOfBirth . "; ");
fwrite($file, $gender . "; ");
fwrite($file, $countryCode . $phoneNumber . "; ");
fwrite($file, $Email . "; ");
fwrite($file, "\n");
fclose($file);