 |
| ::: T4VN Statistics ::: |
PHP Scripts : 64 |
PHP Example : 67 |
PHP Tutorials : 21 |
PHP News : 93 |
Total Coupon : 36 |
Other Tutorials : |
Member : 215 |
Visitor Online : 1 |
Today Visit: 311 |
Total Visitor : 301333 |
Most Online : 41 |
|
 |
 |
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
|
|
|

|
 |
| ::: Resources ::: |
|
|
| ::: New Templates ::: |
|
| ::: Other Tutorials ::: |
|
 |