diff options
author | Adam T. Carpenter <atc@53hor.net> | 2021-11-23 21:57:26 +0000 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2021-11-23 21:57:26 +0000 |
commit | fc99f15bb37f0aefa35069d0a58632b487df4a8b (patch) | |
tree | 684e4d23b04a4f7ba42692e6dfa59dc1597eaedd /index.php | |
parent | 48900db2d6305121e0a00bbcf46b239fb280db82 (diff) | |
parent | 67d2e7e1f3bdc0fc3a6ae6bc8982bb1aa09e074d (diff) | |
download | carpentertutoring-fc99f15bb37f0aefa35069d0a58632b487df4a8b.tar.xz carpentertutoring-fc99f15bb37f0aefa35069d0a58632b487df4a8b.zip |
Merge pull request 'honeypot' (#26) from honeypot into master
Reviewed-on: http://git.53hor.net/53hornet/carpentertutoring/pulls/26
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -365,6 +365,8 @@ <label for="email">Email Address</label> <input name="email" type="email" id="email" placeholder="jdoe85@aol.com" required /> + <input class="honeypot" name="content" type="text" /> + <label for="body">Question/Comment</label> <textarea name="body" id="body" placeholder="Briefly describe your inquiry, including any services or areas of study you're interested in." required></textarea> @@ -379,7 +381,7 @@ require('PHPMailer-master/src/Exception.php'); // handle form submission - if (isset($_POST['name'], $_POST['email'], $_POST['body'])) { + if (empty($_POST['content']) && isset($_POST['name'], $_POST['email'], $_POST['body'])) { $body = substr(strip_tags($_POST['body']), 0, 16384); $name = substr(strip_tags($_POST['name']), 0, 255); |