Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    1
    Thanks
    0
    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.

    thanks!

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 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.


  •  

    LinkBacks (?)


    Posting Permissions

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