piertiong
10-31-2003, 11:21 PM
hi there, may i know what is wrong with this switch case:
<?
switch ($content)
{
case "privacy":
include("privacy.php");
break;
default:
?>
html code goes here
<?
break;
}
?>
this code is used in a .tpl file, which is called from a .php page
when i use the address example.php?content=privacy, it doesn't work.
thanks alot.
<?
switch ($content)
{
case "privacy":
include("privacy.php");
break;
default:
?>
html code goes here
<?
break;
}
?>
this code is used in a .tpl file, which is called from a .php page
when i use the address example.php?content=privacy, it doesn't work.
thanks alot.