I have a form that in the inputs field has id
and when submitting the form I wanted to retrieve those 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 submit, on the edit.php page, I retrieve the value of each input this way
$req1 = $_POST['req1'];
$req2 = $_POST['req2'];
Then how do I retrieve the value id
of each input and send it to the page edit.php