php跳转页面

echo "<!DOCTYPE html><html>head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"></head><script language=\"javascript\">";
echo "alert('".$str."');location.href=\"{$url}\"";
echo "</script></html>";

header('Location: http://www.example.com/');

posted @ 2017-03-23 11:15  小白3  阅读(53)  评论(0编辑  收藏  举报