Add files via upload
This commit is contained in:
committed by
GitHub
parent
a5f92c9bb0
commit
19168d2f8d
13
panel_admin/add_film.php
Normal file
13
panel_admin/add_film.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
session_start();
|
||||
include_once('./includes/film_dto.php');
|
||||
include_once('./includes/formFilm.php');
|
||||
|
||||
if($_REQUEST['add_film']) {
|
||||
$film = new FormFilm();
|
||||
$film->processesForm(null, $_REQUEST['tittle'], $_REQUEST['duration'], $_REQUEST['language'], $_REQUEST['description'], "new");
|
||||
$_SESSION['message'] = $film->getReply();
|
||||
header("Location: ../panel_admin/index.php?state=mf");
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user