Rookie for help: Php gets the element ID different from the ID to call the unused files and parse the template

Source: Internet
Author: User
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?




Reply to discussion (solution)

 
  Assign ("Cfg_cmstitle", "$helptitle"), $Smarty->display ("$help. html"), include "foot.php";

Thanks @!.

Can not later also can communicate more ^^

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.