All examples I can find on the internet seem to show using the indexing operator for $_GET
and $_POST
.
For example, I would think you could write:
<?php
echo $_GET->parameterName;
?>
instead of
<?php
echo $_GET['parameterName'];
?>
I get this error when I try the first piece of code:
NOTICE Trying to get property of non-object on line number 2