Skip to content

Commit

Permalink
Moved advanced version note from the readme to a comment in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
nfriedly committed Aug 13, 2013
1 parent e397241 commit 75648a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions advanced/contact.htm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
To use this code, you'll need to update your email address in the javascript
on this page, and in the php code in submit.php
If you add any form fields to this page, you will also need to update the PHP script.
You are 100% allowed to remove the credit link at the bottom and do whatever
you like with the form. However, I would greatly appreciate it if you left
the link intact :)
Expand Down Expand Up @@ -40,6 +42,8 @@
<p>Your email:
<br /><input name="email" /></p>

<!-- Important: if you add any fields to this page, you will also need to update the php script -->

<p class="antispam">Leave this empty:
<br /><input name="url" /></p>

Expand Down
1 change: 1 addition & 0 deletions advanced/submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
$youremail = 'you@yoursite.com';

// prepare a "pretty" version of the message
// Important: if you added any form fields to the HTML, you will need to add them here also
$body = "This is the form that was just submitted:
Name: $_POST[name]
E-Mail: $_POST[email]
Expand Down
3 changes: 0 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ address.
It includes both a simple version and an advanced (pretty) version, you should only need
to put one or the other on your website.

*For the advanced version, if you add any form fields to the HTML, you will also need to
add them to the php script.*

For a detailed explanation of the methods used, see
http://nfriedly.com/techblog/2009/11/how-to-build-a-spam-free-contact-forms-without-captchas/

Expand Down

0 comments on commit 75648a8

Please sign in to comment.