News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Building a PHP5 Form Processor - Coding the Form Validator Module
January 24, 2006 @ 06:57:09

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...

0 comments voice your opinion now!
form processor module validator integer number range email form processor module validator integer number range email


blog comments powered by Disqus

Similar Posts

Gentoo Blog: Reminder - You *Can* Run PHP4 And PHP5 On The Same Box At The Same Time

Henrik Bjørnskov's Blog: Stampie an in depth look

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

PHPBuilder.com: Email Forms in PHP

NETTUTS.com: CodeIgniter From Scratch: Day 3. Sending Emails and Attachments


Community Events





Don't see your event here?
Let us know!


list symfony bugfix community podcast release deployment interview tips api developer language zendserver laravel code conference series framework development introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework