Rookie for help: Php gets the element ID different from the ID to call the unused files and parse the template
Require_once ("admin/include/global.inc.php");
Include "admin/include/page.class.php";
if ($_get[q]) {
$help = "Kepiao";
$helptitle = "My help file, I write my own Help file";
}
ElseIf ($_get[r]) {
$help = "rule";
}
else{
$help = "Help";
$helptitle = "Help Center, Super Help Center";
}
$Smarty->assign ("Cfg_cmstitle", "$helptitle");
$Smarty->display ("$help. html");
Include "foot.php";
The above is my own writing, can not achieve their own results Ah! This way the URL path is help?q=$$$$, help?r=$$$$ can access, but not I want the URL effect, I want to reach help?u=q, help?u=r can access the way. How can I do it?
Share to:
------Solution--------------------
Require_once ("admin/include/global.inc.php");
Include "admin/include/page.class.php";
if ($_get[' u '] && $_get[' u ']== ' Q ') {
$help = "Kepiao";
$helptitle = "My help file, I write my own Help file";
}
ElseIf ($_get[' u '] && $_get[' u ']== ' R ') {
$help = "rule";
}
else{
$help = "Help";
$helptitle = "Help Center, Super Help Center";
}
$Smarty->assign ("Cfg_cmstitle", "$helptitle");
$Smarty->display ("$help. html");
Include "foot.php";