I know in PHP you have $_GET
, $_POST
, and $_REQUEST
to access form input through their names in the html tags. Is it possible to do the same for their ids? For example:
<form>
First name: <input type="text" id="firstname"><br>
Last name: <input type="text" id="lastname">
</form>
In PHP:
$f_name = $_GET['firstname'];