PHP $_GET is empty. Why?

Viewed 26

I am new to php. Just trying to do a discord login and work with the data i got from the login. But irrelevant.

If i autohrize with discord i get a code back in my url like http://127.0.0.1:5555/process-oauth.php?code=Bg9dQT...

the i try to get code with $dccode = $_GET['code']; but it doesent get it.

I did a bit of research and read that $_GET i onlay an array wich shoud contain all args passed in the url. So i tried outputting all off it, but its empty,

Why? Thanks in advance....

0 Answers
Related