The php pop up dialog box implements the redirect code
- 2020-12-16 05:54:05
- OfStack
1. Implementation using js
2 php implementation
if(!$this->userInfo){
$alert_msg = " Activation link error ";
echo"<SCRIPT LANGUAGE='javascript'>alert('$alert_msg');window.location='$redirect_url';</SCRIPT>";
//redirect(base_url());
die;
}
2 php implementation
if(!$this->userInfo){
$alert_msg = " Activation link error ";
echo"<SCRIPT LANGUAGE='javascript'>alert('$alert_msg');</SCRIPT>";// This has no popover effect why? add exit There will be a popup window , It will be redirected later;
redirect(base_url());
die;
}