Forms--All In One
Date: 03/01/07
(PHP Community) Keywords: php, html
Is there any reason NOT to combine all the elements of a (blank) form with its verification scheme and resulting output in the same PHP file?
I’ve been creating a form that submits to a secondary page to sanitize the input and verify specific fields before generating output html.
But this seems like a clunky novice approach begging for improvement. I was thinking I should throw in a switch and combine all the elements into the same PHP file.
I’d appreciate any thoughts you might have!
Source: http://community.livejournal.com/php/546727.html