Ilya Repenko
Ilya Repenko

Reputation: 37

PHP $_GET from url with #

I have an url like index.php?c1=#reqid#&c2=#affid#&s2=#s2#&s5=#s5# and $_GET parameter did not get nothing. please, tell me why?

Upvotes: 0

Views: 56

Answers (1)

Quentin
Quentin

Reputation: 943561

The # character in a URL indicates the start of the fragment identifier (which is handled client side and never sent to the server).

If you want to include it as data you must encode it as %23.

Upvotes: 5

Related Questions