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;
}
http://www.bkjia.com/PHPjc/726026.htmlwww.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_...