Previously one could only specify a string of markup to use when rendering a form field, but now it's possible to use callback functions to more flexibly wrap markup around a field and its label.
Check it out on github: http://github.com/alanszlosek/Autoform
The old Autoform examples were hideous, so a few weeks ago I started cleaning them up. I still need to show the PHP code that builds each example form, but it's a start.
A PHP class that builds an XHTML form from a definition; Upon form submission performs server-side validation using regular expression matching; If validation fails, displays error messages. Previously entered field values won't be lost.
Minor bugfix release. fileField validate() method shouldn't have been expecting a parameter.
Thanks to Andy at Codeworx Technologies for pointing out the issue.
Significant changes include: validation logic moved into autoformValidator class and a fatal bug was fixed involving field arrays with an empty array.
Almost two years in the making, this release includes many changes. The focus was on increasing the usability, power and overall value of the project.
Imagine handling form fields like objects, or using method chaining to change more than 1 property (label, value, name) at a time. Also, you'll be able to derive your own classes of fields and access field-specific errors (and other properties) with many fewer boundaries. This release will be yet another step towards reducing the pain and tedium associated with HTML forms.
Version 0.6.4 was released 2 days ago after a couple hours of work. It contains fixes for issues that popped up in 0.6.3 and a few other things. Enjoy!
After living in the shadows for a little more than a year, Autoform now has a home on SourceForge. Hooray!