in reply to Re: How do I make a form field required for a Perl Chat Script?
in thread How do I make a form field required for a Perl Chat Script?

The generic answer is that there are at least two ways to do what you're attempting. One is to use JavaScript to check that all fields that you require are filled in and not let the page proceed until that requirement is met.

I think there are two ways you are required to do it in that case. Client-side stuff is great for user experience and helping to keep load off the server but it's completely useless for validating things in the end because they can be sent by a hacker or "broken" browser anyway. Verify and block bad submissions in the client if you can but remember you should do the same thing on the server side either way.

  • Comment on Re^2: How do I make a form field required for a Perl Chat Script?

Replies are listed 'Best First'.
Re^3: How do I make a form field required for a Perl Chat Script?
by Popcorn Dave (Abbot) on Feb 23, 2008 at 01:32 UTC
    You're right, but I thought the OP was asking how to make sure that a field was filled in before progressing. I may have misread the OP's intent.


    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code