Understanding Symbols and Using URLs

I would like a little help understanding this URL a little better.

something / page = 2 &? Agent = 2725

I know that with the help $_GET["page"]I can get the 'page and presumably the "agent" using the same approach.

I am trying to understand the role of the '&' character . According to the forecast, I can assume that it combines a page and an agent code . Do I understand this correctly?

In which instance can you use this & symbol and how is it useful?

+4
source share
3 answers

URI HTTP:

http://example.com/something/?page=2&agent=2725#foo

URI ( ?, # URI):

page=2&agent=2725

URI, & p, a = (. ): .

-. & , :

name1=value1&name2=value2&name3=value3
+1

"?" : " ", "=" "&"; . , "&" " Get-Parameter".

?

test.php key1 = 2 & key2 = 2 & 3 = value3 &...

0

&This character is used to separate each parameter into a URL. Thus, basically, when the request parameters are analyzed by the server, it knows that each &is a different variable.

This format is also known as urlencoded.

You can check and read here. URLENCODED

0
source

Source: https://habr.com/ru/post/1671977/


All Articles