为什么老是显示register_1.htm内容?而registerType又显示正确
解决方案 »
- 编程
- 【问题精华】编辑器与数学符号的问题!
- pear分页包pager问题。
- JavaScript如何读取php设置的cookie
- 修改代码,在IE中可以,但在firefox中代码不能工作。大侠帮忙!
- 大家都说PHP是页面和代码不混杂的,我实在想不通应该怎么写,看看我这段代码,如果分开的话应该怎么实现?
- [请教]如何在php中实现类似include()的功能
- 本人,学习、使用php有三年多时间,在其期间得到csdn各位高人的指点,前后,共做出了5,6十个采用php+mysql的网站,同时,兼有内部小型mis
- 有没有对文本文件操作很好的类阿?
- 那位大哥能给我提供一个用类写的分页程序?
- php通过浏览器传递变量的问题.
- php 在日文系统里alert(document.depart_form.depart.value); 是乱码,改如何处理?
把"="换成"==" or "==="
require_once("./include/config.php");
require_once("./include/function.php");
require_once("./include/unt_db.php");
require_once("./include/unt_template.php");ob_start();//-------------------------------------------------
// 做一些初始化工作
// 选择输出界面
//-------------------------------------------------//$x_db = new TDB($main_host, $main_user, $main_password, $x_db_name);$registerType=$memtype;
echo "传送来的"."$registerType";
$t = new TTemplate($template_dir, 'keep');if ($registerType==1)
{
$tpl_file = "register_1.htm";
}
else if($registerType==2)
{
$tpl_file = "register_p.htm";
}
else{
//$tpl_file = "register_1.htm";
//$tpl_file = "register_p.htm";
$tpl_file = "register_M.htm";
}$t->set_file("main", $tpl_file);
echo $tpl_file;
//-------------------------------------------------
// 显示
//-------------------------------------------------//-------------------------------------------------
// 设置常用变量并输出页面
//-------------------------------------------------$t->set_var('self', $self);
$t->parse('OUT', 'main');$t->p('OUT');
?>
还是不行!