Jump to content

Form errror handling strategy


eazyGen

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/246392-form-errror-handling-strategy/
Share on other sites

 

It depends on the size of the form and the function of the form.

 

Typically though i like to use a message at the top of the form telling the user they have missed a field and also mark the field they have missed some how (the style of which depends on the style of the site, and what they missed).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.