4
The $_GET
, or even the $_POST
, take values from the ID of the input
or of name
?
<form action="#" method="get" name="meuForm">
<input id="nome" name="nome" type="text" value="Teste">
<input id="email" name="email" type="text" value="Teste">
</form>
When we do that: $_GET['nome']
or $_GET['email']
, he’s gonna pull the ID="nome"
or of name="nome"
?
Ah, I get it, PHP only pulls the URL! I hadn’t thought of that.
– Lucas de Carvalho
From URL if request is GET, @Lucascarvalho. If POST is from the body of the request.
– bfavaretto