> > What is the best way to validate form data. 

That would be a very very big topic here...
I can't show the method, but can share some steps.

==== Client Side ====
1. Check missing fields (Check it if js enabled)
2. Check pattern (js also do regex, but not powerful as Perl)

==== Server Side ====
3. Pick up data ( you may have to deal with GET and POST )
## Do 1 and 2 here if client side disabled js.
4. Check referer / session id /cookies / whatever
(Aim to check where the form sign from)
5. Check yours own expectation on fields perference.

That's all about on my point of view.

> > 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?

None of them, you should create a select/opt menu.
Then you even no need to check it, so you can put you focus
to avoid 31/02/2002 etc.

Rgds,
Connie




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to