SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Returning A Validation Error

    Hi, i am in the middle of coding some server side validation for a Create Account form for my website.

    I am trying to decide what the best and most elaborate way is to the return server side validation errors. I currently have a "slick" interface working with jQuery and Ajax BUT i want to be able to return the errors in a "slick" way IF my user decides to turn JS off.

    The options i have seen are:

    - return all the errors in red on a new page, with a back button
    - return the errors in red at the top of the Create Account page
    - return the errors at for each field in red directly above each filed

    01 - what other options are there out here
    02 - what option would you suggest

    Thanks in advance for your help...

  2. #2
    SitePoint Wizard Pedro Monteiro's Avatar
    Join Date
    Sep 2002
    Location
    Lisbon
    Posts
    1,393
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be taking a degrading approach, where you will have javascript based validation in conjunction with server side code. This is the only way you can assure that adequate validation is taking place, regardless of the browser configurations.


Bookmarks

Posting Permissions

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