I am new to php and I am trying to figure out why I cannot view a variable that I am trying to grab from the querystring. I am using the code below to try and figure if there was a setting that changed somehow.
Here is the querystring i am trying to pull from.
/testlinks.php?type=adoption
the output is "parameter type is undefined"
Can anyone tell me what is wrong?
Thanks for the help.
<?php
if (empty($type))
{ echo 'parameter "type" undefined';}
else
{ echo 'parameter "type" value is "' . $type . '"' ;}
phpinfo();
?>
Here is the querystring i am trying to pull from.
/testlinks.php?type=adoption
the output is "parameter type is undefined"
Can anyone tell me what is wrong?
Thanks for the help.
<?php
if (empty($type))
{ echo 'parameter "type" undefined';}
else
{ echo 'parameter "type" value is "' . $type . '"' ;}
phpinfo();
?>