I've recently learned OOP in PHP,.. and I though I'd try to write a class in PHP that generates tags for forms i.e. something that lets you generate forms. Its probably been done a billion times before/ or isn't a very good idea. I'm just doing it as an exercise. Anyway, how would I go about planning this?
$form = new Form_Class($formName, $method, $action);
$form->addElement($label, $name, $inputType);
The above two methods are pretty much all I can think of. I won't be adding any validation in this class -- as I think later on I might make a child class for validation.
Thanks in advance for any replies.