http://www.perlmonks.org?node_id=329594


in reply to Dates and formvalidation

You'll need to use JavaScript or some other client-side validation code in order to avoid a round-trip with the server.

Update:: Upon closer inspection of your post, I think that the other answers are probably in the right direction, and not what I said. It threw me off when you said you were reloading the page, but since you are already performing the validation on the server (when the form is submitted), and you just need to add further validation, so listen to the other answers (they look right).

--
edan (formerly known as 3dan)