Hi, my service provider recently upgraded to a new version of PHP and now my site doesnt work because some of the code doesnt work anymore (and it worked fine on the previous version)
The most basic problem I have is passing variable sfrom the URL.
I used to have a url like "example.php?text=test"
The code within the page would be:
<?php
print ($text);
?>
And the page would display the word "test"
I looked up this forum for answers and found the following solution for printing variables:
<?php
print $_GET['id'];
?>
However, if I place this within an isset argument, it fails to display:
if (isset($id)){
print $_GET['id'];
}
else {
print "nothing specified";
}
What am I doing wrong? is isset obsolete as well? Should I be using something other than $_GET[] ?
I really appreciate any help!
Thank you
-steph