Form errror handling strategy
Posted: Sun Sep 04, 2011 12:30 am
Hi guys,
What techniques do you use to process, validate, and then show errors on your forms.
Do you set an "action" to the same form and then handle errors somewhere?
Do you use a separate script to process validation?
What standards do you apply for the position of the error messages?
Do you alter the "look" of any fields in errors (make them red for example)?
Do you have a good standard strategy that can be applied for all forms in a re-usable fashion? Perhaps using functions?
I am looking for a robust, user friendly (and coder friendly come to that) solution to this frequently encountered situation.
Many thanks for any help.
S
What techniques do you use to process, validate, and then show errors on your forms.
Do you set an "action" to the same form and then handle errors somewhere?
Do you use a separate script to process validation?
What standards do you apply for the position of the error messages?
Do you alter the "look" of any fields in errors (make them red for example)?
Do you have a good standard strategy that can be applied for all forms in a re-usable fashion? Perhaps using functions?
I am looking for a robust, user friendly (and coder friendly come to that) solution to this frequently encountered situation.
Many thanks for any help.
S