|
Posted by Jochem Maas on 10/10/99 11:13
James Kaufman wrote:
> On Wed, Apr 13, 2005 at 06:54:25PM -0700, dan wrote:
>
>>Hello, all -
>>
>>I had some questions regarding the creation of "intelligent" forms -
>>forms that take data, and then parse it for errors, "real" data, etc etc.
>>
>>The first idea I had was to make a function to display the form. When
>>the form is submitted, the page would be called again (i.e. the form's
>>ACTION=itself), and then the POST or GET or SESSION variables will be
>>the arguments to the form. The idea is, when this happens, the form
>>will be able to check the data that was sent, verify it, etc etc. If
>>there are no problems with the data, then the user is directed to step 2
>>of the form, or the second page, to enter in additional data. But how
>>should the redirection happen?
>>
>
> ...
>
> What you are suggesting sounds a lot like what has been done with PEAR's
> QuickForm and QuickForm_Controller. Look at pear.php.net and see what's already
> been done. Why re-invent the wheel?
3 reasons:
1. human nature... the 'not-written-here' factor
2. its good way to learn.
3. QuickForm is about as impenetrable as Fort Knox... JMHO. (also the 'Quick' part
is a bit off... all the times I have tried it, its taken 10 times longer to create a
form in QF than doing it by hand, and doing it by hand always ended up more flexible
and maintainable.... AJMHO)
4. maybe this guy will end up coding a masterpiece that makes QF totally redundant? (heh, I can hope :-)
having said that its always worth the time/effort to search and review (i.e. read the code!)
what other people have done, in that respect QF should give alot of inspiration as how/what/where/why
etc.
have fun!
>
Navigation:
[Reply to this message]
|