More Form Generator

Well, it looks like I have to do a bit of a U-Turn on the form generator. I was having problems getting the validation and display to work easily using a procedural style. I was having to write alot of unneccessary code. So I am now opting to go with a more object oriented route for implementing different form elements.

I also think I am going to borrow a concept from pear that I will use to handle multiple input form elements. My plan now is to have two ‘base classes’. One that can be extended to handle form elements. Then another that can be extended to handle form elements with more than one input. The base classes will contain all of the necessary protected functions to perform data validation and basic display (ie. labels, and what not). At that point I can then make a base set of elements to start out with. I don’t think I will have to touch the actual Form Generator class, but we’ll see.

Share
This entry was posted in Proof of Concepts. Bookmark the permalink.

2 Responses to More Form Generator

  1. angelo says:

    excellent

  2. I already have a working one, generating all types of inputs with all their HTML attributes. It was easy, it took me two days for the core and a week for input validation and some other short little features.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>