|
Posted by Toby A Inkster on 05/02/07 20:54
Areric wrote:
> I was wondering, in general, do people ever follow a similar pattern
> when writing PHP4+ code?
Sometimes, sometimes not. They can be useful for projects when you need to
write a lot of forms. For just a small, one-off form though, they're often
more trouble that they're worth.
There are a few pre-written form libraries here:
http://pear.php.net/packages.php?catpid=10&catname=HTML
And I've written one here:
http://demiblog.org/etc/forms
It's good for tab-based forms -- see the comments form on my website. It's
far from complete -- the most significant missing feature is the ability
to feed back error messages from server-side validation. It has a few nice
features though, like client-side validation backed up by revalidation on
the server.
This is somewhat more complete:
http://tobyinkster.co.uk/blog/2005/11/12/form-functions/
It's more suited towards long surveys.
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
[Back to original message]
|