aboutsummaryrefslogtreecommitdiff
path: root/controllers/contact.controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/contact.controller.php')
-rw-r--r--controllers/contact.controller.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/controllers/contact.controller.php b/controllers/contact.controller.php
index 0f988f3..cdba14e 100644
--- a/controllers/contact.controller.php
+++ b/controllers/contact.controller.php
@@ -7,9 +7,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$submit = new Form();
- $submit->name = $_POST['26471'] ?? null;
- $submit->email = $_POST['26472'] ?? null;
- $submit->message = $_POST['26473'] ?? null;
+ $submit->name = $name = $_POST['26471'] ?? null;
+ $submit->email = $email = $_POST['26472'] ?? null;
+ $submit->message = $message = $_POST['26473'] ?? null;
$spam = $_POST['agree'] ?? false;
@@ -36,6 +36,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$formSuccess = true;
+ $name = null;
+ $email = null;
+ $message = null;
+
include '../views/contact.view.php';
fastcgi_finish_request();