How I can set button type as input tag in symfony2?
<input type="submit" id="id_submit" name="click to go next" class="submit"></input>
using symfony2 formType as public function buildForm(FormBuilderInterface $builder, array $options) {
$builder
->add('submit', 'button',array('attr' => array('class'=>'submit','type'=>'input')))
;
}
As it shows
<button type="submit" id="ponemonSurvey_submit" name="click here to go" class="submit"></input>