& 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?