Hello,
I'm trying to pass a variable from a PHP block in the sidebar.
The code i'm using is:
Code:
$show = "<a href=\"forum.php?cn=1\">setVar</a>";
$show.= "<br />cn=".$_REQUEST['cn']."";
return ($show);
When this block is enabled. I can see the setVar link, on pressing it I can see that the address bar reads:
www.bla.com/forum.php?cn=1
However, I don't see cn=1 below the setVar link.
Where am I going wrong? Any help appreciated.
--------------- Added [DATE]1262226106[/DATE] at [TIME]1262226106[/TIME] ---------------
Figured it out, the code is fine, I just needed to reduce the cache time for the block.