adz - 2009-07-31 10:20:42 -
In reply to message 1 from Karbo13
Don't worry guys, I just sort of dumped this class in here undocumented from a project I was working on, but I guarantee that in the next 2 weeks this class will be significantly expanded and documented.
But for now, here are a few helpful hints:
* Create the formgen object using $form = new FormGen();
* You will use addField() 99% of the time. The parameters are self explanatory if you read the function header descriptions.
* For fields with options, specify options using the format label:name:checked, label:name:checked etc for each field. label is the only required field (ex: you can have label, label, label, label and it will give a sequential number to each option for the value)
* makeForm() produces the html for the form
If you have any burning questions email me at adz@jewc.org. For all others in 2 weeks or so this class will be expanded substantially. Guaranteed.