You'll have to validate it using either javascript at the client side, or check for values in the perl script, and if there's no values, pass the form back with a message
The choice as they say is yours
Are you using a recent version of formmail.pl? Older versions are susceptible to abuse from spammers
yes, i know about the spamming thing.
I put <input type=hidden name="required" value="email">
in the submit page containing the form, but it does not work.
LIke Paul said, you'll need to create either a client side javascript to check the contents of "required" or test the value of "required" in your cgi script.
IMHO, you should do both. Go to the javascript forum and do a search on "form validation" and you'll get 100's of examples on how to write a javascript validation function and how to implement it on your HTML page.
There's always a better way. The fun is trying to find it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.