views:

90

answers:

2

Hi all,

I am looking for a form class that:

  1. Is standalone/doesnt need a framework to run
  2. Has easily configurable validation
  3. 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.

+2  A: 

Phorms comes to mind, and it's lightweight.

The author of PHPClasses.org also has a very complete, altough somewhat blowated library.

Alix Axel
LeonixSolutions
@LeonixSolutions: Then check this: http://freshmeat.net/projects/htmlformsgenerationandvalidation/, it's developed by Manuel Lemos, the author or PHPClasses.org. Examples at http://www.meta-language.net/forms-examples.html.
Alix Axel
Looks like I will be using forms Alix, thanks for the recommendation.
Luke
By forms I ment Phorms, has been great so far
Luke