Home > Backend Development > PHP Tutorial > PHP pop-up dialog box to implement redirection code_PHP tutorial

PHP pop-up dialog box to implement redirection code_PHP tutorial

WBOY
Release: 2016-07-13 10:40:15
Original
892 people have browsed it

1 Use js to implement

Copy code The code is as follows:

if(!$this->userInfo){
$alert_msg = "Activation link error";
echo"";
//redirect(base_url());
die;

}

2 php implementation
Copy code The code is as follows:

if(!$this->userInfo){
$alert_msg = "Activation link error";
echo"";//Why does this method have no pop-up effect? ​​There will be a pop-up window with exit, and it will also be redirected later;
redirect(base_url ());
die;
}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/726026.htmlTechArticle1 Use js to copy the code. The code is as follows: if(!$this-userInfo){ $alert_msg = "Activation link Error"; echo"SCRIPT LANGUAGE='javascript'alert('$alert_msg');window.location='$redirect_...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template