04/06/2006
In a recent article about coding PHP forms, published on O'Reilly's
ONLamp.com, Gavin Andresen explains how his dread of all the typing
required for handling PHP forms got him searching for a "smarter
solution."
The Problem?
HTML Forms + PHP + Error messages/Thank You = a maze of code.
The Solution?
Gavin wrote a function that creates a short cut through that maze.
Programmers simply need to create a standard HTML form then add a
little bit of "magic PHP code" at the top and bottom of the form to
call Gavin's function: fillInFormValues().
The implementation of fillInFormValues() isn't terribly complicated
either. The entire function is under 400 lines of code, including
comments.
Gavin hatched this idea while helping to develop the Gravity Switch
Content Management System (gsCMS) - another "smarter solution."
The gsCMS allows site administrators to quickly and intuitively edit
their sites without having to know any programming languages.
Gavin's complete article is available at O'Reilly's PHP Developer's Center.
About Gavin: With 18 years of experience under his belt & a
Bachelor's degree in Computer Science from Princeton University, Gavin
is enormously smart and knows a great deal about programming.
About
Gravity
Switch: Gravity Switch is an experienced web/multimedia design firm with a
knowledgeable and friendly staff. For information about working with
Gravity Switch please call [413] 586-9596.

