23 lines
388 B
PHP
23 lines
388 B
PHP
<?php
|
|
|
|
namespace src;
|
|
|
|
use Information;
|
|
|
|
require_once "src/Information.php";
|
|
|
|
$fileName = "Information.txt";
|
|
$fileModeOpen = "a";
|
|
|
|
$fullInformation = new Information();
|
|
$fullInformation->load($_REQUEST);
|
|
|
|
echo "<pre>";
|
|
print_r($fullInformation);
|
|
$string = $fullInformation->toString();
|
|
|
|
$file = fopen($fileName, $fileModeOpen);
|
|
fwrite($file, $string);
|
|
fclose($file);
|
|
|
|
require "table.php"; |