0 votes
in PHP by
How can we access the data sent through the URL with the GET method?

1 Answer

0 votes
by
To access the data sent via the GET method, we use $_GET array like this:

www.url.com?var=value

$variable = $_GET["var"]; this will now contain 'value'

Related questions

+1 vote
asked Jun 22, 2019 in PHP by SakshiSharma
0 votes
asked Jun 23, 2019 in PHP by SakshiSharma
...