Perl form scrip returning blanks
Posted on 2002-04-23
I run a simple perl guestbook form script on my website that has been working perfectly for a few years.
Lately, however, I've been getting a lot of "blank" submissions -- so many, in fact, that I don't think they are coming just from folks fooling around.
The entries posted on the guestbook page show no content. And the email notification I receive, which contains the information from six different fields, only shows the names of two fields ("name" and "comment" -- the first and the last in the list) and the content for those are blank.
When I go to the form and submit it myself without entering any information in the fields, I get an email notification that shows three fields --name, comment, and one that is checkbox with one of the choices checked.
But when I get the "blanks," just the name & comment show, but without any content.
Previously I noticed that if a user used the "enter" key to move from one field line to the next, it would launch the program. So I added a java script to block the enter key and encourage the use of the tab key.
But I don't think that's the problem. Sometimes the form works just fine, and submissions come through as they should. But then I'll get 20 blanks a day.
Any ideas on what could be causing this and how I can fix it?