setMode('development'); $form->startFieldset('Subscribe to our newsletter'); $form->addInput('email', 'user-email', '', 'Your Email', 'required'); $form->centerButtons(true); $form->addBtn('submit', 'submit-btn', 1, 'Subscribe ', 'class=btn btn-lg btn-success ladda-button, data-style=zoom-in'); $form->endFieldset(); // jQuery validation $form->addPlugin('formvalidation', '#post-with-ajax-form'); /* ================================================== 2nd form - without the formvalidation plugin ================================================== */ $form2 = new Form('post-with-ajax-form-2', 'horizontal', 'novalidate', 'bs3'); // $form2->setMode('development'); $form2->startFieldset('Subscribe to our newsletter'); $form2->addInput('email', 'user-email-2', '', 'Your Email', 'required'); $form2->centerButtons(true); $form2->addBtn('submit', 'submit-btn-2', 1, 'Subscribe ', 'class=btn btn-lg btn-success ladda-button, data-style=zoom-in'); $form2->endFieldset(); ?> Bootstrap Newsletter Subscribe Form - Ajax POST - How to create PHP forms easily printIncludes('css'); ?>

Php Form Builder - BS3 Newsletter Subscribe Form
posted with Ajax

1st form - posted with Ajax
with the formvalidation plugin

render(); ?>

2nd form - posted with Ajax
without the formvalidation plugin

render(); ?>
printIncludes('js'); $form->printJsCode(); $form2->printJsCode(); ?>