PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

NetTuts.com: Simplify Form Handling in a Big Way

Note: This article was originally published at PHPDeveloper on 3 February 2011.
PHPDeveloper

On NetTuts.com today there's a new tutorial that wants to help you simplify your form handling in your PHP application with a few advanced tips.

Save time, reduce maintenance pains, simplify your code, and do it all while feeling like a freakin' genius! In this tutorial, learn how to use variable variables, lookup arrays, and a bit of clever programming to simplify form handling in a big way.

They show how to use variable variables in some practical examples of filtering posted information and an alternative to creating multiple form handling scripts that all do (virtually) the same thing. They've created an alternative - a single script that uses a large switch to filter through each posted element.