Utf-8 Jump thinkphpphp
Showsuccess ("Registered Success", 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. " /"; It doesn't work here, or it's going to add a root path.
$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
Currently tried $GLOBALS [' Tmpl ']->display ("/success.html"); Go directly to this page and then change {$jump} to an external page link.