I meet:
- implement a form
- this has several inputs with the same name
- I need to insert the data into the database
I intend for the moment:
- create a record for each platform user
-
The form has multiple fields that link to the various database entries
<div class="form nome_ch"> <label for="nome_ch">Nome</label> <input type="text" name="nome_ch[]" id="nome_ch"> </div> <div class="form cargo_ch"> <label for="cargo_ch">Cargo</label> <input type="text" name="cargo_ch[]" id="cargo_ch"> </div> <div class="form telefone_ch"> <label for="telefone_ch">Telefone</label> <input type="text" name="telefone_ch[]" id="telefone_ch"> </div> <div class="form email_ch"> <label for="email_ch">E-mail</label> <input type="text" name="email_ch[]" id="email_ch"> </div> <div class="form nascimento_ch"> <label for="nascimento_ch">Nascimento</label> <input type="text" name="nascimento_ch[]" id="nascimento_ch"> </div>
I do not know how to do:
- insert in database
There are several form parameters that link to variables or parameters with identical names