您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息
三六零分类信息网 > 邵阳分类信息网,免费分类信息发布

utf-8-ThinkPHP跳转链接前面怎样能不加根路径

2024/4/29 8:58:46发布4次查看
utf-8跳转thinkphpphp
showsuccess(注册成功,0,url(index,account));
这是原本的注册成功后跳转到一个页面
现在我想跳转到一个外部页面 但如果只改为url(www.xxxxx.com)
最后会是 www.genlujing.com/www/xxxxx/com
这样肯定是不行的
function showsuccess($msg,$ajax=0,$jump='',$stay=0)
{
if($ajax==1)
{
$result['status'] = 1;
$result['info'] = $msg;
$result['jump'] = $jump;
header(content-type:text/html; charset=utf-8);
echo(json_encode($result));exit;
}
else
{
$globals['tmpl']->assign('page_title',$globals['lang']['success_title']. - .$msg);
$globals['tmpl']->assign('msg',$msg);
if($jump=='')
{
$jump = $_server['http_referer'];
}
if(!$jump&&$jump=='')
$jump = app_root./; // 这里去掉也不行 还是会加上根路径
$globals['tmpl']->assign('jump',$jump);
$globals['tmpl']->assign(stay,$stay);
$globals['tmpl']->display(/success.html);
exit;
}
}
success.html是用

跳转的
以上 要怎样改 能之间跳转到外部页面
目前试过了 $globals['tmpl']->display(/success.html); 直接到这个页面 然后将{$jump} 改为外部页面链接 也不行
邵阳分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录