diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-08-30 04:30:53 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-08-30 04:30:53 -0400 |
commit | 2bdcd9d9283b44e7c35822aa1317013928006fd8 (patch) | |
tree | ca2bf097e4dfcfdabba36a5cb2643560ab03b926 /app/controllers | |
download | thedroneely.com-2bdcd9d9283b44e7c35822aa1317013928006fd8.tar.gz thedroneely.com-2bdcd9d9283b44e7c35822aa1317013928006fd8.tar.bz2 thedroneely.com-2bdcd9d9283b44e7c35822aa1317013928006fd8.zip |
Initialize Repo: First Commit
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/contact.controller.php | 3 | ||||
-rw-r--r-- | app/controllers/index.controller.php | 3 | ||||
-rw-r--r-- | app/controllers/mail.controller.php | 19 |
3 files changed, 25 insertions, 0 deletions
diff --git a/app/controllers/contact.controller.php b/app/controllers/contact.controller.php new file mode 100644 index 0000000..60f5f08 --- /dev/null +++ b/app/controllers/contact.controller.php @@ -0,0 +1,3 @@ +<?php + +require '../app/views/contact.view.php'; diff --git a/app/controllers/index.controller.php b/app/controllers/index.controller.php new file mode 100644 index 0000000..7ec4a52 --- /dev/null +++ b/app/controllers/index.controller.php @@ -0,0 +1,3 @@ +<?php + +require '../app/views/index.view.php'; 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, + ] +); |