Trouble with Limiting Comment Textbox Size
Posted: Tue Oct 09, 2007 2:37 pm
Script URL: http://www.pleasantstreetinnbb.com/php/ ... /gbook.php
Version of script: 1.43
Hosting company: godaddy
What terms did you try when SEARCHING for a solution: maxlength
I am having trouble with gbook spam, and I know the number one thing I should do to fix it is to upgrade to version 1.5. However, I will not have time to do that for another month or two. So to put a minor fix on it, I was going to limit the size of the message that can be entered. Currently is it unlimited, and the spammers take full advantage of this and enter page long entries. I added the code to line 732. The new section of code then looks like this
My issue is, of course, is that this does not work and does not limit the text field at all. Any idea as to why its not working? I was hoping that it would be a quick fix until I have time to upgrade, but maybe it wont be.
Version of script: 1.43
Hosting company: godaddy
What terms did you try when SEARCHING for a solution: maxlength
I am having trouble with gbook spam, and I know the number one thing I should do to fix it is to upgrade to version 1.5. However, I will not have time to do that for another month or two. So to put a minor fix on it, I was going to limit the size of the message that can be entered. Currently is it unlimited, and the spammers take full advantage of this and enter page long entries. I added the code
Code: Select all
maxlength="800"
Code: Select all
<p align="center"><b>Comments:</b><br>
<textarea name="comments" rows="9" cols="50" maxlength="800"><?php echo $comments; ?></textarea>