ShowSuccess (& quot; registration successful & quot;, 0, url (& quot; index & quot;, & quot; account & quot ;)); this is the original registration to jump to a page now I want to jump to an external page, but if only changed to url (www.xxxxx.com) will eventually be www. genlujing. comwwwxxxxxcom is definitely not applicable to functionshowSuccess ($ msg, $ ajax0, $ jump & #39; & #39;, $ stay0) {if ($ ajax UTF-8 jump to thinkphpphp
ShowSuccess ("registered successfully", 0, url ("index", "account "));
This is a page to jump to after successful registration.
Now I want to jump to an external page, but if I only change it to url (www.xxxxx.com)
Www.genlujing.com/www/xxxxx/com
This is definitely not the case.
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. "/"; // the root path will still be added if this parameter is removed.
$ GLOBALS ['tmpl']-> assign ('Jump ', $ jump );
$ GLOBALS ['tmpl']-> assign ("stay", $ stay );
$ GLOBALS ['tmpl']-> display ("/Success.html ");
Exit;
}
}
Success.html is used
Jump
How can I jump between the above changes to the external page?
I have tried $ GLOBALS ['tmpl']-> display ("/Success.html"). I can't directly go to this page and change {$ jump} to an external page link.