Home > Article > Backend Development > PHP pops up a prompt box and jumps to a new page (redirect)_PHP tutorial
Start using the following jump:
echo "3f1c4e4b6b16bbbd69b2ee476dc4f83a alert('sucess');parent.location.href='/user/index'; 2cacc6d41bbb37262a98f745aa00fbf0";
Alert contains the prompt message, and href is the page to jump to after the prompt.
Later I remembered that there is a redirect() redirection method in the TP framework, so I went to take a look.
However, TP does not come with a pop-up window, so it was modified to:
<span $url="http://www.jbxue.com";</span>
<span echo</span> "<script> alert('no loginid'); </script>"<span>; </span>
<em id="__mceDel"><span echo</span> "<meta http-equiv='Refresh' content='0;URL=<span $url</span>'>";</em>
Two direct jump methods:
<span header</span>("Location:".PSYS_BASE_URL."user/index"<span ); 和 </span><span header</span>("refresh:{<span $time</span>};url={<span $url</span>}");
Finally, there is another problem. The jump code is always followed by a return, because the following statements will also be executed.