utf-8-thinkphp Jump link Front How can not add root path

Source: Internet
Author: User
Keywords Utf-8 Jump thinkphp php
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.

  • Related Article

    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.