Hi
Having trouble passing variables using a url.
The code is
<a href="temp.php?bg=hello">test</a>
and the temp.php code
<?
echo $_GET['bg']; ?>
The code runs but nothing is shown on the screen, I am running php using IIS.
Can anybody help
Thanks
just do
echo"$bg";
Thanks for the help
got it working with
echo $bg;
Thanks Mark
Actually, horwem, which version of PHP are you using?
the version of PHP is 4.0.5
horwem
I would suggest that you upgrade to PHP 4.3.7
In your case, correct was $HTTP_GET_VARS['bg'], as the $_GET superglobal array didnt exist when PHP 4.0.5 was released.