News Feed
Sections




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

WeberDev.com:
PHP 101 (part 13) The Trashman Cometh
July 08, 2006 @ 10:06:31

WeberDev.com has just added to their popular "PHP 101" series today with the release of part 13 - "the Trashman Cometh".

Over the next few paragraphs, I'm going to show you some basic tricks to validate user input, catch "bad" data before it corrupts your calculations and databases, and provide user notification in a gentle, understandable and non-threatening way. To prepare for this exercise, I suggest you spin up a CD of John Lennon singing "Imagine", fill your heart with peace and goodwill towards all men, and take a few deep, calming breaths. Once you've exhaled, we can get going.

They prepare you for the "wonderful" world of input validation by means of form validation examples (one of the most common ways users could abuse your site). They cover checking for things like:

  • No value entered
  • Value entered is invalid/empty
  • A date entered isn't valid
  • Using regular expressions

They also touch on a few other validation methods before wrapping it up with some more complete code examples and explainations.

0 comments voice your opinion now!
beginner tuturoail trashman input validation beginner tuturoail trashman input validation


blog comments powered by Disqus

Similar Posts

CSS-Tricks.com: PHP for Beginners: Building Your First Simple CMS

SaniSoft Blog: Multiple validation rules per model field while baking

Zend Developer Zone: Security Tips #10, #11, and #12

AjaxRay.com: The first Kohana book : Kohana 3.0 Beginnerís Guide

DevShed: Centralizing the Validation of Data with the Observer Pattern in PHP


Community Events





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


install deployment series symfony api package interview language framework bugfix podcast opinion library voicesoftheelephpant release laravel introduction unittest zendserver community

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