On Tue, 30 Jul 2002, Kipp, James wrote: > What is the best way to validate form data. I have a form which the user > enters dates like '08/01/2002'. What is the best way to make sure this > format is entered. Should i use javascript here or regex?
I heard about and started using Data::FormValidator. It returns a hash, I think of fields which were valid, an array of fields that were missing, and some other things, like invalid fields and unknown fields. The problem is, I don't know what to do with the information. I just enter $valid{$field} in the form wihout checking whether it exists, or is defined, or is true. -- Greg Matheson If you're not making any mistakes, Chinmin College you must be making some mistake. Taiwan Penpals Archive <URL: http://netcity.hinet.net/kurage> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]