|
Umm... both mad_willsy and Scout are correct, ONLY if you have register_globals set to on, which is a security risk.
Parameters passed in the URL are called GET parameters and are available through either the $_GET array or the $_REQUEST array.
In your case, you can do:
$urlstuff = $_GET['stuff'];
and then $urlstuff will be equal to 'qwerty'.
To add to what Scout said: you don't need to wrap a variable in quotes to print it and if you use single quotes, it won't 'interpret' the variable at all. So, again, in your case:
$urlstuff = $_GET['stuff'];
print "$urlstuff"; // prints qwerty
print $urlstuff; // also prints qwerty
print '$urlstuff'; // prints $urlstuff
|