I am looking for a form class that:
- Is standalone/doesnt need a framework to run
- Has easily configurable validation
- Has validation and generation for all form fields including checkboxes(one solution I found was great except it didnt have any check box functionality)
I have had a look on google and stackoverflow but most everything I found was a year old, I am hoping in the last year something has been developed or improved.
My reason for asking is that I have a couple of very large forms to make that without a form class are going to take ages to build. Unfortunatly I dont have time to develop my own class but I do have time to learn and use a recommended one as undoubtedly it will be far faster than writing hardcoded html forms with a PHP validation script.
I hope someone can help
Regards
Luke
UPDATE:
Phorms has been fantastic, very simple to use syntax and very easy to bring into a project, the ability to set data for the form is great and also very simple to use, so great for a cms needing to edit articles etc.
UPDATE 2:
I wrote my own form class because Phorms did not allow for enough customising of html for me. Nibble forms is hopefully very simple and easy to use. I like it but I am a little bias 🙂
Update 3 (Feb 2013)
This has now evolved into Nibble Forms 2 which uses PHP5.3 namespaces and conforms to the PSR 0,1 and 2 coding standards
Phorms comes to mind, and it’s lightweight.
The author of PHPClasses.org also has a very complete, altough somewhat blowated library.