Reputation:
I have a contact form and it should send me an email with content using php mail.
To avoid some spambots I have a hidden field in the form.
Now I want to check if the field is empty, and if not stop the script from sending the mail.
I request the content of the field into the $bot variable
So what I want to to is something like
if $bot not empty then don't go on else execute the rest of the script
Please help a beginner
Regards
Anders
Upvotes: 0
Views: 253
Reputation: 494
you can use JAVASCRIPT. it would definitely be helpful to apply anytype of checks you want.
if you only use the php code on the next page. then it would not be a good strategy.
Upvotes: 0