26229Form Processing with PHP 4http://www.zend.com/zend/spotlight/form-pro-php4.phpThis week I'll take an introductory look at one of the most fundamental uses of PHP 4 -- form processing. Although the code you'll be working with this week was written explicitly for this column, it was inspired by RLYNCH and their code fragment "Required".PHP > Tips and Tutorials > Form ProcessingOct 15, 2006
This week I'll take an introductory look at one of the most fundamental uses of PHP 4 -- form processing. Although the code you'll be working with this week was written explicitly for this column, it was inspired by RLYNCH and their code fragment "Required".
Checkboxes are just html. Anybody can code them. Actually, checkboxes belong somewhere between the open form element, and the close form element. The open form element should have at least a name, method and action properties and optionally an enctype property for file/image uploads. Just like this:
In the last exciting episode of the PHP Phanatics, we explored the inner workings of PHP's unique $GLOBALS array. Several sharp-eyed readers pointed out a bug in the script dumping the contents of the $GLOBALS array. If an array element was itself an array, the display listed that fact rather than the contents of the component array. The displayed line looked like:
In the last article, the Phanatic was leading an expedition into a largely uncharted area. The conceptual project was a generalized form handler. The task's starting point was Matt Wright's famous "formmail" and included adding many more bells and whistles. While putting together the last tome, time and space were closing in on us, and in an effort not to strain the Phanatic's rapidly aging brain, we pulled into shore for a rest. Let's review the project's design goals before setting out to sea again.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.