2
I wonder if it is possible to insert several values within a variable in html, pass via POST to php and register each one in a row in the database.
For example, enter multiple names through the name= "name field".
Put everything together, send php and insert one into each line. It would take a way for me to add more things and it doesn’t mix. If I wanted to add last name, age and gender, and when registering to register an entire line to then go to another.
<html>
<form action = "cadastro/cadastrando.php" method="POST">
<tr>
<td>Nome:
<label for="nome"></label></td>
<td height="33"><input type="text" name="nome" size="30" required/></td>
<td width="267">
</tr>
<tr>
<td>Nome 2:
<label for="nome"></label></td>
<td height="33"><input type="text" name="nome" size="30" required/></td>
<td width="267">
</td>
</tr>
<td>Nome:
<label for="nome"></label></td>
<td height="33"><input type="text" name="nome" size="30" required/></td>
<td width="267">
</td>
<br>
<br>
<center><button type="submit" >Cadastrar <span class=""></span></button></center>
<br>
</form>
</html>
Cara didn’t even know this existed, out of curiosity how is identified the beginning and end of a name in the input?
– Caique Romero