0
I have a form that we inputs has the field id and when sending the form I wanted to recover these values in my code.
<form action="edit.php" method="post"]>
<label class="" >
<span class="legend">Requisito 1 :</span>
<input type="text" name="req1" id="1"value="teste 1" style="margin-bottom: 10px;"></label>
<label class="" >
<span class="legend">Requisito 2 :</span>
<input type="text" name="req2" id="2"value="teste 2" style="margin-bottom: 10px;"></label>
</form>
So when I press send, on the page Edit.php, recover the value of each input in that way
$req1 = $_POST['req1'];
$req2 = $_POST['req2'];
So how do I recover the value id of each input and send to the page edit.php
Question: why do you need
idof the element? Its function is to identify only one element in the DOM, in the HTML. If you need this value in PHP, you are implementing it wrong.– Woss
because on the Edit page I give an upty in the table where the id coming from the input is equal to that of the bank
– diogo Dsa