Let's say I enter a URL into a browser like this:
Then on mypage.php I want to display the value of "thingy" I do this
This was working fine on Webserver A (test) but when I transferred the site to Webserver B (live) $thingy was displayed as a blank value, so I had to change the code to do this:
Any ideas why this might be so? Which is the "correct" method?
TIA
Code:
www.fred.com/mypage.php?thingy=cukker
PHP Code:
<?
echo $thingy;
?>
PHP Code:
<?
echo $_GET["thingy"];
?>
TIA
Comment