Page 1 of 1

Form class - array

Posted: Wed Jul 27, 2005 11:30 am
by xfish5
I make class for work wiht forms.

I construct i set form(action, method,...)

And help with methods setInput() . . . set elements and showForm() white form.

I dont have any idea -> save to Array, "format" araay...

My idea:

$input[name][value][size][class];

$textarea[name][value][cols][rows];

etc...

AND...

$form[$input[name][value][size][class]];
$form[$textarea[name][value][cols][rows]];
And echo array $form.

Please help me!!!
Thanks!

Posted: Wed Jul 27, 2005 11:36 am
by shiznatix
what exactally is your question? how to do this? if so somtin like this

Code: Select all

<input type=&quote;text&quote; name=&quote;name&#1111;value]&#1111;size]&#1111;class]&quote;>
and whatnot