Form class - array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xfish5
Forum Newbie
Posts: 13
Joined: Fri Jun 03, 2005 1:32 pm

Form class - array

Post 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!
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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
Post Reply