I'm creating a form where you make a record by entering 5 data (5 fields), and then by pressing the "Add" button, this data would be added in a "table" below where it shows your number, name and can be edited, or removed, while the other 5 fields are empty to add more data, and so until the user clicks "Register" where he would register all the data of the table in the database.
<div class="content">
<div class="container">
<div class="row">
<?php require_once 'templates/message.php';?>
<div id="div-superior" class="col-xs-12 col-sm-5 col-md-5 col-lg-5">
<div id="registro-publico" class="row btn-c well">
<form class="form-horizontal" role="form">
<!-- CONTEÚDO AQUI !-->
<!-- BUTTON !-->
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button id="buttons" type="submit" class="btn btn-default">Cancelar </button>
<button id="buttons" type="submit" class="btn btn-default">Adicionar</button>
</div>
</div>
</form>
</div>
<div id="div-button-cad">
<button id="button-cad" type="submit" class="btn btn-default">Cadastrar</button>
</div>
<div id="div-table-quiz-public">
<!-- TABELA AQUI !-->
</div>
</div>
</div>
</div>
</div>
<!-- /container -->
The code is that way. I can not figure out how to do this table interaction, in fact I only need to be able to click on "Add" to be able to insert new data for only then, when clicking on "Register" can be inserted all the data in the database. It is necessary that the user can enter several data according to his will before registering.
I researched a lot and did not find anything related to it. So I do not know how to start this part.