diff options
Diffstat (limited to 'app/controllers/mail.controller.php')
-rw-r--r-- | app/controllers/mail.controller.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/controllers/mail.controller.php b/app/controllers/mail.controller.php new file mode 100644 index 0000000..d22b487 --- /dev/null +++ b/app/controllers/mail.controller.php @@ -0,0 +1,19 @@ +<?php +$form = new Form( + $name = $_POST['26471'], + $email = $_POST['26472'], + $message = $_POST['26478'] +); + +$form->isSubmit(); + +// require '../app/views/mail-sent.view.php'; +// fastcgi_finish_request(); + +$contact['database']->insert( + 'contactform', [ + 'name' => $form->name, + 'email' => $form->email, + 'message' => $form->message, + ] +); |