News Feed
Sections




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

O'Reilly:
Autofilled PHP Forms
March 17, 2006 @ 07:32:18

The O'Reilly OnLamp.com site has a tutorial posted that takes a look at a simple way to "auto-fill" HTML forms with a little help from PHP.

I hate typing, but I like writing code. A while ago I started to dread all the rote typing required to handle forms in PHP, and began looking for a Better Way. This article describes how I used PHP's regular expression functions to do most of the heavy lifting required to process forms properly, saving lots of typing and giving me time to do stuff I don't hate, such as writing code (and playing NetHack).

He sets it upJeff Cogswell, have had) to display the form, validate the input, and display the results of this validation (or a success message).

He takes a little bit different kind of method behind it than several form packages out there - he grabs the HTML output of the form with output buffering and does replaces on that with the previously entered values.

0 comments voice your opinion now!
autofilled forms html output buffering string replace regular expression autofilled forms html output buffering string replace regular expression


blog comments powered by Disqus

Similar Posts

Pierre-Alain Joye's Blog: Debugging symfony (or any php script) with vim and Xdebug

Sebastian Bergmann\'s Blog: More Work on Reporting in PHPUnit 3

WaxJelly Blog: Simple PHP script using the YouTube API (with pagination)

O\'Reilly: Autofilled PHP Forms

Riff Blog: Console encoding in PHP-GTK apps


Community Events





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


code introduction framework developer laravel series wordpress configure podcast application api library list community release project bugfix language interview threedevsandamaybe

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