www.webdeveloper.com
Results 1 to 2 of 2

Thread: Your opinion: Best way to validate web forms

  1. #1
    Join Date
    Aug 2006
    Location
    Monterrey, Mexico
    Posts
    162

    Your opinion: Best way to validate web forms

    Hi,
    I've recently been handed the task to propose a standard to validate web forms in my companys systems.

    I've been reading on the internet, and i came to this conclusion.

    The best way to validate a web form would be:

    -Validate in real time (when an input loses focus validate its content)
    -Validate on submit (check all inputs before submitting)
    -Validate on the server (validate that all data is correct on the server)

    A person here at the office thinks that a "number" input should be made so that when the users is typing the input simply doesnt accept characters which are not in the [0-9] range (so that if you type an "A" for example, nothing appears on the input box).

    I believe this is not a desirable thing, as it raises other problems such as.. what do to do with copy and paste functionality.

    I'd like your opinion on this matter if it's not too much trouble.

    Thanks in advance

  2. #2
    Join Date
    Apr 2005
    Posts
    5
    As a user I like realtime feedback, with simple pointers to what I've missed. And never force me to re-enter info.

    As a developer there has to be some server side validation too.

    I agree I don't think allowing only certain input isn't that helpful.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles