FormClasses/info.php
2024-06-26 11:10:17 +03:00

25 lines
496 B
PHP

<?php
namespace src;
use src\debug\Debug;
use src\file_db_driver\FileDatabaseDriver;
use src\Information;
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->updateServiceInfo($string);
$obj->save($string);
$obj->close();
require "views/search.php";