How can I skip the root path before the utf-8-ThinkPHP jump link?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.