If I have a file, firstfile.html, which has a hyperlink in it to :
secondfile.php?type=2&subcategory=4
How do I then extract that in the code in secondfile.php, using html or php?
I basically want some inputs in a form to be auto-filled with the information passed.
The docs on external source variables:
http://php.net/manual/en/language.variables.external.php
In your particular situation, you’d use
$_GET['type']or$_REQUEST['type'], etc.