By programming to record multiple data of the same type
or even class
within the database, I came across the need to check if any of these inputs would not be empty at the time of insertion.
Since it is a form of registro de contatos
which contains 10 fields that will be inserted with each send, I need a function so that these fields are processed with 10 emails at a time, neither more nor less.
<form role="form" id="form_cadastra" action="" method="post" enctype="application/x-www-form-urlencoded">
<div class="form-group">
<label for="exampleInputEmail1">E-mail 1</label>
<input type="email" value="" class="form-control" placeholder="Enter email">
</div>
{ ... }
<div class="col-xs-12 col-sm-12 col-md-12">
<button type="submit" class="btn btn-primary">Cadastrar</button>
</div>
</form>