different changes
- change from $ _REQUEST to $ _POST / $ _ GET - Session messages are managed globally by template
This commit is contained in:
committed by
GitHub
parent
5ad88e6e35
commit
4968bc8e25
@ -3,21 +3,21 @@
|
||||
include_once('./includes/film_dto.php');
|
||||
include_once('./includes/formFilm.php');
|
||||
|
||||
if(isset($_REQUEST['add_film'])) {
|
||||
if(isset($_POST['add_film'])) {
|
||||
$film = new FormFilm();
|
||||
$film->processesForm(null, $_REQUEST['tittle'], $_REQUEST['duration'], $_REQUEST['language'], $_REQUEST['description'], "new");
|
||||
$film->processesForm(null, $_POST['tittle'], $_POST['duration'], $_POST['language'], $_POST['description'], "new");
|
||||
$_SESSION['message'] = $film->getReply();
|
||||
}
|
||||
else if(isset($_REQUEST['confirm_delete_film'])) {
|
||||
else if(isset($_POST['confirm_delete_film'])) {
|
||||
$film = new FormFilm();
|
||||
$film->processesForm($_REQUEST['id'],null,null,null,null,"del");
|
||||
$film->processesForm($_POST['id'],null,null,null,null,"del");
|
||||
$_SESSION['message'] = $film->getReply();
|
||||
}
|
||||
else if(isset($_REQUEST['confirm_edit_film'])) {
|
||||
else if(isset($_POST['confirm_edit_film'])) {
|
||||
$film = new FormFilm();
|
||||
$film->processesForm($_REQUEST['id'], $_REQUEST['tittle'], $_REQUEST['duration'], $_REQUEST['language'], $_REQUEST['description'], "edit");
|
||||
$_SESSION['message'] = $film->getReply();
|
||||
$film->processesForm($_POST['id'], $_POST['tittle'], $_POST['duration'], $_POST['language'], $_POST['description'], "edit");
|
||||
$_SESSION['message']= $film->getReply();
|
||||
}
|
||||
header("Location: ../panel_admin/index.php?state=mf");
|
||||
header('Location: ../panel_admin/index.php?state=mf');
|
||||
|
||||
?>
|
Reference in New Issue
Block a user