Heya, Chris. Welcome to TSDN!
Changed thread title to better describe the problem (did you know that threads whose titles do not follow the
Posting Guidelines actually get FEWER responses?).
$_GET and $_POST will only contain values if you are sending GET or POST variables, respectively.
To populate $_GET, you will need to append your variables to the query string. For example:
-
http://localhost/path/to/your/script.php?variable=value
-
If you then call this code in script.php:
You will see this:
-
Array
-
(
-
[variable] => value
-
)
-
Populating $_POST generally requires submitting a form.
For more information, have a look at
this document.