How do I change the id attribute in the button tag

211 views
Skip to first unread message

pierrehs

unread,
Apr 16, 2012, 5:54:38 AM4/16/12
to php-form-builder-class
Hello,
I want to know how can I change the id attribute in the button tag.
I tried like this but in does not work.

$form->addElement(new PFBC\Element\Button, 'submit',
array('id'=>'my_id'));

Can you help me, please

pierrehs

unread,
Apr 16, 2012, 6:32:35 AM4/16/12
to php-form-builder-class
Sorry I was wrong.
The id works fine.
$form->addElement(new PFBC\Element\Button('Submit', 'submit',
array('id'=>'my_id')));

The problem is solved.

Google

unread,
Jan 26, 2013, 3:23:00 PM1/26/13
to php-form-bu...@googlegroups.com
Hey What the above stmt do ??
 
Can you explain connectivity to database as
I need to register a user  form to databases is used pfbc for php classes now I need to use form action when user pressed login button
 
But I am not getting the code.
 
Can you help me ??
Reply all
Reply to author
Forward
0 new messages