-1

What I want to do is echo the value of $test on my page, through the uri. I know I'm doing something wrong, but I can't figure out what.

Code:

<?php echo $test?>

URL:

localhost/testMap/test.php?test=hallo

Tibout
  • 23
  • 1
  • 9

1 Answers1

0

You can get the value of url with a get, and store it in the variable $test and then echo that out.

$test = $_GET['test'];
SC92
  • 161
  • 13