Last active
July 12, 2017 08:49
-
-
Save btr2/2752e8ef39aff45c1711dc83863099d7 to your computer and use it in GitHub Desktop.
Example contact form with a honeypot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="contactform" action="mailer.php" method="post"> | |
<label>Your name: | |
<input type="text" name="name"> | |
</label> | |
<label>Your email: | |
<input type="email"> | |
</label> | |
<label style="display:none;">Leave this empty: | |
<input type="text" name="honeypot" /> | |
</label> | |
<label>Your message: | |
<textarea rows="4"></textarea> | |
</label> | |
<button class="button" type="submit" value="Submit">Submit</button> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment