saajjj
12-30-2009, 11:49 PM
Hello,
I'm trying to pass a variable from a PHP block in the sidebar.
The code i'm using is:
$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 1262226106 at 1262226106 ---------------
Figured it out, the code is fine, I just needed to reduce the cache time for the block.
I'm trying to pass a variable from a PHP block in the sidebar.
The code i'm using is:
$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 1262226106 at 1262226106 ---------------
Figured it out, the code is fine, I just needed to reduce the cache time for the block.