Im fed up of writing a lot of complex HTML code, so thought about writing it in a nice easy object, but what I want to do is build up a statment via multiple calls. For example:-
Ive got my code nicely working with:-
But I have no idea how I can create my object to accept multiple createTextBox fields. I know its possible as Ive seen it done in PHPCharts library, just no idea how to implement it myself.
I know my examples look easy, but what I want to do inside 'CreateTextBox' is set height, width, ID, Classes, Data objects etc, hence why it becomes complicated, but want to try and make my life easier, and hence the simple example to start with and then I can build out.