PHP form - if honeypot input field is filled - redirect to another page
i have a simple contact form that i have included a honeypot input field.
i would like the form to redirect to a webpage if the field is filled out.
i tried the below code, but it is giving me an error: the AJAX request
failed!
so i know i have done something wrong. i'm sure it is simple.
thanks
the php code:
if(!empty($_POST["e-mail"])) header('Location: blankman.html');exit;
the form input:
<input type="text" name="e-mail" id="e-mail"/>
No comments:
Post a Comment