require_once("admin/include/global.inc.php");
include "admin/include/page.class.php";
if($_GET[q]){
$help="kepiao";
$helptitle="我的帮助文件,我自己写的帮助文件";
}
elseif($_GET[r]){
$help="rule";
}
else{
$help="help";
$helptitle="帮助中心,超级帮助中心";
}
$Smarty->assign("cfg_cmstitle","$helptitle");
$Smarty->display("$help.html");
include "foot.php";
上面是我自己写的,实现不了自己要的效果啊!这样的写法url路径是help?q=$$$$、help?r=$$$$可以访问,但不是我要的url效果,我想达到help?u=q、help?u=r可以访问的方式。请问怎么能做到呢?
<?phprequire_once("admin/include/global.inc.php");include "admin/include/page.class.php";if($_GET['u'] && $_GET['u']=='q'){ $help="kepiao"; $helptitle="我的帮助文件,我自己写的帮助文件";}elseif($_GET['u'] && $_GET['u']=='r'){ $help="rule";}else{$help="help";$helptitle="帮助中心,超级帮助中心";}$Smarty->assign("cfg_cmstitle","$helptitle");$Smarty->display("$help.html");include "foot.php";多谢@!
不可以 以后也可以多交流 ^^
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号