Actualiser controler/inscription_event.php
This commit is contained in:
@@ -5,7 +5,7 @@ require_once "database.php";
|
||||
|
||||
// Vérifie que l'utilisateur est connecté et que le formulaire est bien envoyé
|
||||
if (!isset($_SESSION['pseudo']) || !isset($_POST['id_evenement'])) {
|
||||
header("Location: event.php");
|
||||
header("Location: ../views/event.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ $check->close();
|
||||
|
||||
if ($existe > 0) {
|
||||
// Déjà inscrit
|
||||
header("Location: event.php?inscription=deja");
|
||||
header("Location: ../views/event.php?inscription=deja");
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,6 @@ $insert->bind_param("isi", $id_utilisateur, $pseudo, $id_evenement);
|
||||
$insert->execute();
|
||||
$insert->close();
|
||||
|
||||
header("Location: event.php?inscription=ok");
|
||||
header("Location: ../views/event.php?inscription=ok");
|
||||
exit;
|
||||
?>
|
Reference in New Issue
Block a user