PHP Classes

How to use

Recommend this page to a friend!

      Form Generator  >  All threads  >  How to use  >  (Un) Subscribe thread alerts  
Subject:How to use
Summary:Form Generator
Messages:2
Author:Karbo13
Date:2009-07-29 04:20:18
Update:2009-07-31 10:20:41
 

  1. How to use   Reply   Report abuse  
Picture of Karbo13 Karbo13 - 2009-07-29 04:20:19
I downloaded this class, but I don't know how to use.

  2. Re: How to use   Reply   Report abuse  
Picture of adz 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 [email protected]. For all others in 2 weeks or so this class will be expanded substantially. Guaranteed.