Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Thanked 0 Times in 0 Posts

    JS Form validation

    Hello everyone,

    I found a form on this page http://sbpoley.home.xs4all.nl/webmatters/formval.html

    and I want to make something like that..
    could someone please tell me the javascript code this. it doesnt have to be the entire code. just one texfield so I can see how it's done.

    I want to make a form where it validates while the user is entering the information... just like that example.


  2. #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    London, England
    Thanked 2,703 Times in 2,679 Posts
    Why do you not download the code from the site which it invites you to do?

    But form validation has been covered a zillion times in this forum. Have you considered using the search feaure?

    It is your responsibility to die() if necessary….. - PHP Manual

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


Posting Permissions

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