Hey guys,
I've been having some real problems lately with spam being submitted on some forms on a website I run. A few nights ago, I added a PHP Captcha to the form, but it doesn't seem to have done much in reducing the amount of spam.
So now, as well as the captcha, I'm trying to implement another way to "trick" the spam bots... I want to have a hidden text box in my form that, when it is submitted with a value, will prevent the form from going through.
The following code is what I have so far. But I still can't seem to get the text box to be 'hidden': (Notice I'm not using the attribute type='hidden'... I'm trying to hide it another way - mainly so that the spam bots don't know it's "hidden" if you know what I mean)
This is part of the code found at http://www.huntsources.com/list.php (The actual form) -
Now here's my css, found in http://www.huntsources.com/main.css:
Any ideas why this is not working?
Also, do you have any other suggestions on ways I can curb the amount of spam I'm getting?
Once it is working on this page, I'm going to implement it onto other forms on the same website.
Thanks for any help,
David
I've been having some real problems lately with spam being submitted on some forms on a website I run. A few nights ago, I added a PHP Captcha to the form, but it doesn't seem to have done much in reducing the amount of spam.
So now, as well as the captcha, I'm trying to implement another way to "trick" the spam bots... I want to have a hidden text box in my form that, when it is submitted with a value, will prevent the form from going through.
The following code is what I have so far. But I still can't seem to get the text box to be 'hidden': (Notice I'm not using the attribute type='hidden'... I'm trying to hide it another way - mainly so that the spam bots don't know it's "hidden" if you know what I mean)
This is part of the code found at http://www.huntsources.com/list.php (The actual form) -
Code:
<form method=POST action="list.php" name="list">
<input type="hidden" name="submitted" value="submitted">
<div class="form_01">
<label for="first_name">First name:</label>
<input title="Visually impaired users: do not enter anything in this box" type="text" name="first_name" id="first_name" value="" onKeyUp=" val = this.value; if (val.length > 0) { alert('Please place your cursor in βNameβ box to start your message'); this.value = val.substring(0,0); emailform.focus() } this.form.count.value=0-parseInt(this.value.length); ">
</div>
Now here's my css, found in http://www.huntsources.com/main.css:
Code:
#form_01 {
visibility: hidden;
display: none;
}
Any ideas why this is not working?
Also, do you have any other suggestions on ways I can curb the amount of spam I'm getting?
Once it is working on this page, I'm going to implement it onto other forms on the same website.
Thanks for any help,
David





