Adjaime / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

External Html #183

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
respected Sir

i am disturbing you  a lot but now issue is this how to add custom or external 
HTML in form generation i m using PFBC 3.0. kindly advise me what to do for 
this.

Usama Feroz

Original issue reported on code.google.com by usamafer...@gmail.com on 8 Nov 2012 at 2:54

GoogleCodeExporter commented 8 years ago
sir you have used the external HTML tag in examples in Ajax but this tag is 
giving me error because there is no such file in elements folder

Original comment by usamafer...@gmail.com on 12 Nov 2012 at 3:17

GoogleCodeExporter commented 8 years ago
In PFBC 3.x, the HTMLExternal element doesn't exist.  The markup below the Ajax 
example file is incorrectly - mostly like a copy-and-paste error during the 
process of converting the example from 2.x to 3.x.  If you look at the PHP 
source of the Ajax example, you'll see that the HTML element is used.

Thanks for pointing out this bug.  I will correct for the next version release.

- Andrew

Original comment by ajporterfield@gmail.com on 12 Nov 2012 at 3:46

GoogleCodeExporter commented 8 years ago
Sir 

now how to insert custom html tags in the form generator.

Original comment by usamafer...@gmail.com on 12 Nov 2012 at 7:18

GoogleCodeExporter commented 8 years ago
In PFBC 3.x
$form->addElement(new PFBC\Element\HTML('<h2>Login</h2>'));

Original comment by shrijanp...@gmail.com on 16 Nov 2012 at 2:12

GoogleCodeExporter commented 8 years ago
r575    removes the references to the HTMLExternal element in the ajax example 
file.

Original comment by ajporterfield@gmail.com on 21 Nov 2012 at 4:54