Form Validation Tutorial Using Javascript, Php, Ajax

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 23, 2009, 03:24 AM
431042 members and 298114 Topics
Latest Member: Jamesabrems
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderators: OmniPotens, yawa-ti-de)  |  Form Validation Tutorial Using Javascript, Php, Ajax
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Form Validation Tutorial Using Javascript, Php, Ajax  (Read 590 views)
*dhtml
Form Validation Tutorial Using Javascript, Php, Ajax
« on: January 23, 2009, 12:44 PM »

Going Twice [I have posted something similar to this before but got no response so i allowed it to slide]
Though the other one - i did not expantiate - i will do that now.

[Client-Sided Validation]
This area deals with how to make sure the major fields in your form are filled before submission.
For instance if you are talking of a login form. It is important to make sure the username and password are filled.
In a registration form, maybe we are expecting area codes or 3 characters, we need to make sure that 3 numbers
of entered not 3 alphabets and not just any character like lol.

So we are talking about putting the right data types expected, not leaving blanks, and this also covers makin a textarea have a maximum length,

These stuffs are done in client-sided validation without reloading the page (and without wasting client's time)

[Server-Sided Validation]
Now you have submitted the necessary details, but u need to crosscheck some things with say a database, this is where
you now crosscheck the entered information to see if they are correct.
For instance the username/password must be checked against the records in the database,

This will usually reload the browser into the same page or different page.

[Ajax Validation]
This will combine both client and server-sided without leaving the page.

Going, going, gone!
After reviewing so many sites, i discover that form validation seem to be a major cause of problem.
If you are interested in how to validate forms properly, please raise up your hand.

OmniPotens (m)
Re: Form Validation Tutorial Using Javascript, Php, Ajax
« #1 on: January 23, 2009, 05:19 PM »

 :-x
*dhtml
Re: Form Validation Tutorial Using Javascript, Php, Ajax
« #2 on: January 23, 2009, 05:42 PM »

Going thrice! This time there is no ban for even moderators
 Crownbrothers.com - A New It Website  Nigerian Hacking Team  Where I Can Register For Free Website?  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.