-4

I want to get the TOKEN from the URL bar and name it in an echo. How can i do this?

I have tried:

$GET['Token']
http://forexample.de/getsharelink.php/TOKEN=d5bETQi8Iwe6G8tcIlWp
mplungjan
  • 169,008
  • 28
  • 173
  • 236
Fabijona
  • 1
  • 4

2 Answers2

0

Assuming you're trying to get it in PHP, the URL parameters are case sensitive, so it would be: $_GET['TOKEN']

I wrestled a bear once.
  • 22,983
  • 19
  • 69
  • 116
0

For the parameters, your URL needs to separate them from the main URL with ? if you are wishing to use $_GET. For example, http://forexample.de/getsharelink.php?TOKEN=d5bETQi8Iwe6G8tcIlWp.

Other than that, you have simply missed out a _ before GET, also make sure your cases are correct.

Try this $_GET['TOKEN']