Results 1 to 6 of 6
  1. #1

    Exclamation Valdateing a Form


    I have an already working HTML form with a php mailer. I was wondering what would be the best way to validate certain fields on the form for completion?

    Thank you,
    Juston G

  2. #2
    Join Date
    May 2008
    Check out LiveValidation: It does js validation of fields while typing.
    Dan Hildebrandt, Developer / Support, WebGroup Media LLC. -
    Cerberus Helpdesk 5.x is a CRM toolkit. Remember anything about anybody, swiftly reply to a flood of e-mail,
    capture feedback organically, track time, flag opportunities, share tasks, and more.

  3. #3
    Join Date
    Nov 2001
    Server side validation, ultimately. Ajax validation is nice but still requires something on the backend so get that working -- being alert to the sorts of problems you'll run into is something of a prerequisite -- and then dive into the fancy stuff.

    Let me google that for you:

    Numerous ideas in the first few links.

    Add Ajax:

    Google takes all the fun out of things.

    Edit: I should add that I am a big proponent of using a decent web application framework, the better examples of which have already wrestled over all sorts of issues ranging from user authentication and session handling to forms and form validation. If a developer can find a decent framework for PHP (or ^ insert language here ^) that fits their brain the'll find themselves a lot more productive and spending less time reinventing the wheel... often not very well.
    Last edited by mwatkins; 06-25-2009 at 04:03 PM.
    “Even those who arrange and design shrubberies are under
    considerable economic stress at this period in history.”

  4. #4
    For simple validation like required fields, phone number format, email address etc use client-side Javascript.

    More advanced validation i.e. checking input against the database requires Ajax. As noted above Google knows pretty much about this stuff.

  5. #5
    Join Date
    Mar 2004
    Chennai India
    miOOt Chat Solutions
    live chat Software for web hosting Customer Service
    Importance of Live Chat Software for Web Hosting Business

  6. #6
    Join Date
    Apr 2005
    LOL at lmgtfy, *fistbumps mwatkins*

    You really want server-side validation only, client side is nice for looks but ultimately, you'll give away your validation routines, so someone can easily bypass them. Present the client with the simplest interface possible, and redirect back with a 401 header if they mess up.
    Zach E. -
    Shared Web Hosting, Reseller Hosting, Cloud VPS & Dedicated Servers
    UK: 0800 138 3235 ❘ USA: 1-800-995-8256

Similar Threads

  1. Replies: 0
    Last Post: 11-28-2005, 08:31 PM
  2. Replies: 1
    Last Post: 11-10-2005, 09:41 PM
  3. Replies: 0
    Last Post: 10-19-2005, 11:48 AM
  4. Replies: 0
    Last Post: 10-10-2005, 05:33 PM
  5. Replies: 0
    Last Post: 10-05-2003, 10:11 AM

Posting Permissions

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