Root Path Jump thinkphpphp
showSuccess("注册成功",0,url("index","account"));
This is the original registration successful after jumping to a page
Now I want to jump to an external page but if only URL (www.xxxxx.com) is changed
And eventually it's www.genlujing.com/www/xxxxx/com.
It's definitely not going to work.
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 is used
Jump to
How to change between the above to jump to the external page