I have a link that passes a value via GET to a page:
pagina.php?id=1
Within pagina.php
I have a form that will do a POST for itself, but I get the value of id
with $_GET['id']
and form with $_POST
when submitting.
id
together, but since it is received via GET
, adding a input hidden
with name="id"
to the form would not work because id
would not be received via GET
.
How could I get around this by sending id
along with the form and only id
would have to be received via GET
?