No root path is added before the ThinkPHP jump link

Source: Internet
Author: User
& Quot; showSuccess (& quot; registration successful & quot;, 0, url (& quot; index & quot;, & quot; account & quot;); & 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 cannot do this. & quot; functionshowSuccess ($ msg, $ ajax0, $ jump & #39; & #39;, $ stay0 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 $ GLOBALS ['tmpl']-> assign ('Jump ', $ jump) will be added if this parameter is not removed here ); $ 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?

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.