kobaj
VIP Member
I'm programming a website and decided to pass variables through _Get. I have it working correctly, for example...
and I can snag it,
However, when I click the first link, the URL shows up as
I know the variable is being passed, and index.php reflects this and echos it on screen. But is there a setting, or something I can do, so the url will stay?
Some extra info, using the latest Firefox and PHP 5.
Code:
echo "<a href='" . $_SERVER['PHP_SELF'] . "?word=bird'>http://notarealwebsite.com/index.php?word=bird</a>";
Code:
$var = $_Get['word'];
echo "the $var is the word"; //ignore concat
However, when I click the first link, the URL shows up as
Code:
http://notarealwebsite.com/index.php?
I know the variable is being passed, and index.php reflects this and echos it on screen. But is there a setting, or something I can do, so the url will stay?
Code:
http://notarealwebsite.com/index.php?word=bird
Some extra info, using the latest Firefox and PHP 5.