Page 1 of 1

Form class

Posted: Fri Jun 10, 2005 9:04 am
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

Posted: Fri Jun 10, 2005 9:47 am
by patrikG
Looks nice. But why would you need help?

Posted: Fri Jun 10, 2005 9:50 am
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..?

Posted: Fri Jun 10, 2005 9:54 am
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

Posted: Fri Jun 10, 2005 10:05 am
by xfish5
I thing:

Code: Select all

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