parsing parameter problem
Posted: Thu Apr 26, 2007 2:21 pm
I am not very good in PHP. My problem is : I try to pass parameter from href but it seem not working. Here is my code :
<a href="?f=history/index" class="link_leftmenu" onMouseOver="window.status='History'; return true;" onMouseOut="window.status=''; return true;">History</a><br> <br>
<?
echo "f is $f <br>";
if (!$f) $f = "index";
echo "f is $f";
include("../content/$f.php");
?>
The first echo always return null value which my page cannot refer to ../content/history/index.php
Please help. It was working before and recently it seems not working anymore.
regards,
Ujang
<a href="?f=history/index" class="link_leftmenu" onMouseOver="window.status='History'; return true;" onMouseOut="window.status=''; return true;">History</a><br> <br>
<?
echo "f is $f <br>";
if (!$f) $f = "index";
echo "f is $f";
include("../content/$f.php");
?>
The first echo always return null value which my page cannot refer to ../content/history/index.php
Please help. It was working before and recently it seems not working anymore.
regards,
Ujang