This commit is contained in:
2024-05-20 15:11:17 +03:00
parent 6744d4e537
commit 8f07ea82bc
10 changed files with 161 additions and 35 deletions

View File

@ -1,13 +1,43 @@
<?php
use src\fullName;
use src\Information;
//require_once "src/form.html";
require_once "form.html";
require_once "src/Information.php";
require_once "src/fullName.php";
require_once "src/contacts.php";
require_once "src/additionallyInfo.php";
//require_once "info.php";
require_once "table.php";
require_once "functions.php";
$fullName = new fullName('Билай', 'Станислав', 'Романович');
$fn = $fullName->foolName();
$p1 = new Information($fn, 'hfd', '11', '+7', '11111111', 'ashg@ajhi');
$p1->writeInformation();
$flag = false;
$surname = $_REQUEST["surname"];
$name = $_REQUEST["name"];
$patronymic = $_REQUEST["patronymic"];
$fullName = new fullName($surname, $name, $patronymic);
$fullName = $fullName->getFoolName();
$gender = $_REQUEST["gender"];
$DateOfBirth = $_REQUEST["DateOfBirth"];
$additionallyInfo = new additionallyInfo($DateOfBirth, $gender);
$additionallyInfo = $additionallyInfo->getAdditionallyInfo();
$countryCode = $_REQUEST["countryCode"];
$phoneNumber = $_REQUEST["phoneNumber"];
$email = $_REQUEST["email"];
$contacts = new contacts($countryCode, $phoneNumber, $email);
$contacts = $contacts->getContacts();
$p1 = new Information($fullName, $additionallyInfo, $contacts);
$fullInformation = $p1->getFullInformation();
$flag = isFullInfo($fullName, $additionallyInfo, $contacts);
if($flag) {
$file = fopen("Information.txt", "a");
fwrite($file, $fullInformation);
fclose($file);
} // if