I have a form which I send data through a post but sometimes the server takes time to respond and if you give it again in the save button it duplicates the information as I do so that the save button is disabled when it is already has once clicked on save? Header of the form:
form action="<?php echo base_url();?>movimientos/ventas/store" method="post" id="form-venta">
this is the button:
<div class="form-group">
<button type="submit" class="btn btn-success btn-flat">Guardar</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-default2">Aplicar Descuento</button>
</div>