KBD

Keith Devens .com

Friday, July 30, 2010 Flag waving
The status is *not* quo. – Dr. Horrible

Archive: April 17, 2004

← April 16, 2004April 19, 2004 →

Daily link icon Saturday, April 17, 2004

Best practices for web form errors

Simplified Form Errors

Anything else anyone can recommend? I reworked my form library a bit, which I plan to release as open source. One of the things it can do is generate a default form given a form definition. Most of the time, that form is completely adequate and you don't need to do anything else. The form I'm typing in right now is completely auto-generated.

Anyway, I just want to make sure I make the generated forms as good as possible, so if anyone has anything else they'd like to point me to, please do.

Update: A little more here

Also, what about security? You can prevent automated posting to some degree by, for example, marking the form with the timestamp it was sent as well as an associated hash of that timestamp. When both are sent to the server they're validated against each other. It doesn't completely prevent automated posting, but it would at least require some HTML scraping to circumvent. What else?

Update: It seems to me that there are a few kinds of errors you have to report. You have the field-specific errors, such as "E-mail address is required", and "E-mail address was not in a valid format", and then inter-field errors, such as "Both password fields didn't match". Then you have whole-form errors that summarize the state of the entire form, such as "There was an error posting your entry".

yet another test post

Skateboarding bulldog!

You must check out Tyson the skateboarding bulldog at http://www.skateboardingbulldog.com/.

Make sure you check out the video linked here.

I can't remember where I came across this, even though I just downloaded the video a little while ago.

← April 16, 2004April 19, 2004 →
July 2010
SunMonTueWedThuFriSat
 123
45678910
11121314151617
18192021222324
25262728293031



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

DTerm: A command line anywhere and everywhere

They wrote back. It turns out that,​when I launched it a second time, I​was...

Revence: Jul 26, 2:28am

Minimum Wage Increase Leads to Higher Teen Unemployment Rate - WSJ.com

Sorry, I don't believe it.  My son​was working as a dishwasher, making​$10/...

Bryan Price: Jul 25, 2:50pm

Generated in about 0.043s.

(Used 7 db queries)