<form>
element set to GET.They can also retrieve data from a query string (information appended to a URL).
Here’s an example of how an HTML hyperlink with a query string might look:
HTML link
<html> <a href="demo_phpfile.php?subject=PHP&web=W3schools.com"> </body> |
When a user clicks the link, the query string data is sent to demo_phpfile.php.
In the PHP file, we can use the $_REQUEST variable to retrieve the values from the query string.
The PHP file demo_phpfile.php:
<html> <?php ?>
</body> |