PEAR HTML_QuickForm

HTML_QuickForm - this is the package I’ve been looking for for the latest week :) It automates form management in PHP in a very nice manner. I’ve already tested a couple of third-party classes and they either contain bugs (and the project I intend to use it in is critical) or they don’t have the functions I need. I will test it (in particular, I was looking for such a package since I have a big project going on with lots of forms) and update this post with some experiences.

UPDATE: so, here comes some input.

QuickForm is easy to use and has all the functions I expected it to have. One possible bug/problem I found was that you can’t set the default value for a <select> using SetDefaults(…). Neither using indexes or the actual values works :( Other than that, everything is great: forms are constructed with a few lines of PHP, new validation rules are easy to add (one small disappointment was that it is impossible to provide a custom error message from within a validation rule), the form can be “frozen” and shown to the user. Another important thing is that the documentation is reasonably good for such a project (I never had to look at the source code, just dig deeeeep into the help file sometimes :) ).

I like the PEAR packages. Now that I’m pretty sure they work I think it’s worth to take the time to examine some of them. Particularly, these look nice to me: a progress bar, AJAX library (you can’t have enough of them! ;) )

del.icio.us:PEAR HTML_QuickForm digg:PEAR HTML_QuickForm spurl:PEAR HTML_QuickForm wists:PEAR HTML_QuickForm simpy:PEAR HTML_QuickForm newsvine:PEAR HTML_QuickForm blinklist:PEAR HTML_QuickForm furl:PEAR HTML_QuickForm reddit:PEAR HTML_QuickForm fark:PEAR HTML_QuickForm blogmarks:PEAR HTML_QuickForm Y!:PEAR HTML_QuickForm smarking:PEAR HTML_QuickForm

Tags: , , , ,

Leave a Reply