25 lines
471 B
PHP
25 lines
471 B
PHP
<?php
|
|
|
|
namespace src;
|
|
|
|
use src\debug\Debug;
|
|
use src\file_db_driver\FileDatabaseDriver;
|
|
use src\Information;
|
|
use src\Forms;
|
|
|
|
require_once "vendor/autoload.php";
|
|
|
|
$fileName = "Information.txt";
|
|
$fileModeOpen = "a";
|
|
|
|
$fullInformation = new Information();
|
|
$fullInformation->load($_REQUEST);
|
|
|
|
$string = $fullInformation->toString();
|
|
|
|
$obj = new FileDatabaseDriver();
|
|
$obj->connect(__DIR__ . "/Information.txt");
|
|
$obj->save($string);
|
|
$obj->close();
|
|
|
|
require "views/search.php"; |