Form class

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

Post by xfish5 »

I need help with form class.

Usage:

Code: Select all

$form = new CForm('script.php', 'POST', 'form_name');
$form->input('name','type','class');
$form->select('name', $data);
$form->submit('SEND DATA');
// ETC...
Do you any help me with this class?

Thanx
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Looks nice. But why would you need help?
xfish5
Forum Newbie
Posts: 13
Joined: Fri Jun 03, 2005 1:32 pm

Post by xfish5 »

Those classes very helping with work with forms.

Methods input, select, fieldset,... only seting form elements.

Method makeForm writing writing full form. I nedd help wiht - save elements into array or other..?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

you need to save elements into a array?

Code: Select all

$array = array();

$array[] = $some_element;
$array[] = $another_element;
$array[] = $one_last_element;
that what you mean? i think you might need to make your question a bit clearer
xfish5
Forum Newbie
Posts: 13
Joined: Fri Jun 03, 2005 1:32 pm

Post by xfish5 »

I thing:

Code: Select all

$array = array();
$array[] = 'xxx';
// ETC
But for this class and "writing" formto page from array.
Post Reply