HOME  |  ABOUT US  |  PRODUCTS  | DOWNLOAD  |  HOSTING COUPON  |  TEMPLATE  |  REGISTER | FORUM  | CONTACT
::: Member Login :::
 Username
 Password
 
Forgot your password ?
::: PHP Turtotal :::
  Basics & Beginner (3)
  Date & Time (1)
  Sessions & Cookies (1)
  Counters & Logging (2)
  Databases (0)
  Email & Mailing Lists (0)
  Membership Systems (0)
  User Authentication (0)
  Security (1)
::: PHP Example :::
  Arrays (1)
  Code Highlighters (3)
  Database Functions (2)
  Date & Time (5)
  E-Mail (3)
  Forms (5)
  Guestbooks (1)
  Logging (1)
  Miscellaneous (2)
  Password Generators (3)
  Randomizers (3)
  String Manipulation (4)
  User Authentication (2)
::: Download Center :::
  PHP Version
  Free Ebook
  Online Project
::: Search On T4VN :::
::: T4VN Statistics :::
  PHP Scripts : 23
  PHP Example : 35
  PHP Tutorials : 8
  PHP News : 8
  Total Coupon : 22
  Other Tutorials :
  Member : 34
  Visits : 16396
  Member Online : 10
Home Today :
PHP NEWS

DevShed: Building a PHP5 Form Processor - Coding the Form Validator Module

Author : http://www.phpdeveloper.org   [2006-01-24 23:18:53]
Full Article: http://www.phpdeveloper.org/news/4718



DevShed has the second part of their "Building a PHP5 Form Processor" series posted today - Coding the Form Validator Module. It looks at how to construct a set of functions that will check the data inputted to ensure it exists and correct/valid.
In this second part of a three-part series, we take up the topic of server-side validation. By the time you finish this article, you'll have the general guidelines for how to build a form validating class. You'll use some PHP built-in introspection functions, along with regular expressions, to assist you in building this class.

They create several functions, including validateEmpty, validateInteger, validateNumber, validateRange, and validateEmail. Each one (obviously) serves their own purpose, and some are more complex that others (validating an integer versus a valid email address), but they walk you through each, showing you plenty of code and explainations along the way...

Others News

Stuart Herbert's Blog: PHP 5 Stabilisation Re-visited
Jim Plush's Blog: AJAX, PHP and Javascript Errors - How to get more data
Site News: A (Lengthly) Look Back at PHP in 2005
Andi Gutmans' Blog: Fluent Interfaces



::: PHP Scripts :::
Auctions (1)
Banner Exchange (1)
Calendars (1)
Chat Related (0)
Classified Ads (6)
Content Manage (1)
Counters & Trackers (0)
Customer Support (1)
Games (2)
E-Commerce (2)
Email Related (0)
Knowledgebase (0)
Forum / Boards (2)
Guestbooks (2)
Image Galleries (1)
Miscellaneous (0)
Music Libraries (2)
News Publishing (1)
Polls and Voting (0)
User Authentication (0)
::: Other Tutorials :::

  Powered By T4VN.NET - Version 2.0 - CopyRight @ T4VN.NET 2005-2006