Please replace the ??? with your dat!
[desc]:
Hi, I want to write some custom validation routines for my cforms – I know I can use reg expressions in the form creation but really want to be able to call a routine to validate the input and return something to the form indicating that that particlar field has failed.
So can someone give me a simple example to get me started.
If I have a text feld (e.g. Name) and want to validate it is a string and has more than 10 characters – how and where would I write my own routine to do this check? How would I return a value indicating that a field has failed validation – can someone give me a solid example.
I repeat – I know I can do this using regulrar expressions when I decalre the form – but want this to start me off.
Thanks
Jason