PHP prompts and jumps to the new page (redirection ). Start using the following redirection: echoscriptalert (sucess); parent. location. hrefuserindex; script; alert contains the prompt message, and href is the page to jump to after the prompt. Later I remembered
Start using the following jump:
Echo "script" alert ('sucess '); parent. location. href ='/user/index'; script ";
Alert contains the prompt message and href is the page to jump to after the prompt.
Later I remembered that there was a redirect () redirection method in the TP framework, so I went and looked at it.
However, TP does not bring a pop-up window, so it is changed:
"《script》 alert('no loginid'); 《script》";
"
";
Two direct jump methods:
("Location:".PSYS_BASE_URL."user/index"("refresh:{};url={}");
Finally, there is another problem. after the jump code is followed by a return, because the subsequent statements will be executed.
Explain echo "script alert ('sucess '); parent. location. href = '/user/index';/script "; alert contains the prompt message and href is the page to jump to after the prompt. Later I remembered...