New Zenner
- Join Date:
- May 2012
- Posts:
- 22
- Plugin Contributions:
- 0
Simple CSS/PHP AntiSpam solution for a contact form
schoolboy:
The point many people miss is that the website - while being an "easy" way to order goods - is just another sales channel. Many people put up their website and then "sit back" hoping that the orders will just roll in regardless. They hide their phone number, they don't provide an address...
I don't understand. I didn't hide the telephone, and I didn't provide an address for my business simply because I don't have one.
I have also provided alternative ways to contact us: by email, FB Messenger, FB fan page, Twitter, You Tube channel, besides the telephone number.
All I was looking for was to cut only the contact us form, and leave the rest page alone with the alternative ways to contact us.
I will try instead the advice yaseent gave me. Hopefully don't break anything instead! :)
I have allready changed the SPAM tags, I need a little help with the next steps:
yaseent:
What I would do in your case is changed the name of the field, and the name of the function that tests for that field's input.
Change all instances of "leaveblank" to "Telephone".
By all instances, did you mean exactly that, ALL instances?
E.G.: in
// NO SPAM
$leaveblank = zen_db_prepare_input($_POST["leaveblank"]);
// NO SPAM
both "leaveblank" should be changed?
yaseent:
... and the name of the function that tests for that field's input...
The name of the function is "leaveblank"?
yaseent:
Also, give it an ID or a class, and add this class to your Stylesheet, and apply "display:none;visibility:hidden" - and remove it from the inline styling for now.
Could you help me with that too?
Thank you in advance!