I have a submit button in my .php file, but I want to create another that Submits and allows to fill the form again. For example: I am adding a new product and I want to add a lot of them without closing the form.
So, for the submit button I have this code:
<div id="novoServico<?= $sub->getIdSubcategoria()?>" class="modalDialog">
<div>
<a href="#secao_servicos" title="Close" class="close">X</a>
<?php $data['idSubcategoria'] = $sub->getIdSubcategoria();
$data['idEmpresa'] = $empresa->getIdEmpresa();
$this->load->view("servico_add_view",$data); ?>
</div>
</div>
That calls the file with this code
$data = array(
'type' => 'submit',
'id' => 'submit',
'class' => 'button',
'value' => 'Inserir'
);
echo form_label('<span> </span>','submit');
echo form_input($data);
Can anyone tell me what function or whatever to start create the 'Submit and add again' button?
Thanks!