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
xfish5
Forum Newbie
Posts: 13 Joined: Fri Jun 03, 2005 1:32 pm
Post
by xfish5 » Fri Jun 10, 2005 9:04 am
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
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Fri Jun 10, 2005 9:47 am
Looks nice. But why would you need help?
xfish5
Forum Newbie
Posts: 13 Joined: Fri Jun 03, 2005 1:32 pm
Post
by xfish5 » Fri Jun 10, 2005 9:50 am
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..?
shiznatix
DevNet Master
Posts: 2745 Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:
Post
by shiznatix » Fri Jun 10, 2005 9:54 am
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 » Fri Jun 10, 2005 10:05 am
I thing:
Code: Select all
$array = array();
$array[] = 'xxx';
// ETC
But for this class and "writing" formto page from array.