<html>
<head>
<title>- Hinic.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"">
<meta HTTP-equiv="refresh" content="0.1;url=你指定的路径">
</head><body bgcolor="#FFFFFF" text="#000000"></body>
</html>

解决方案 »

  1.   

    我要的并不是这种方式  比如一个登录程序,接收user &&pass到了检测页如果user & pass不能正确,用代码让它自动返回输入页。我要的就是这种功能,PHP有吧各位?
      

  2.   

    die("<script>window.location.replace('lost.htm');</script>");
      

  3.   

    if (!($user == '***'))
      header("Location:http://localhost/error.htm");
      

  4.   

    同意楼上的,用header(),要注意和ASP一样在本页不能有输出.
      

  5.   

    如果前边有输出的话,可以用
    echo "<script>alert('您的用户名或密码有错误,请重新登陆。') ; location.href='index.php'; </script>" ;
      

  6.   

    if("条件"){
    header("location:您要转到的页面");
    }
    就可以了,但注意,在些之前不能输出任何信息,最好将其放在代码的最顶上。
      

  7.   

    都说了!其实方法有很多!可以用header("location:$url"),也可用JAVASCRIPT,就看你是怎么用了!
      

  8.   

    有以下方法可以实现:
    1。html的meta标记
    <meta http-equiv=refresh content=0;URL=***.php>2。客户端脚本(以JS为例)
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    window.location.href="***.php";
    //-->
    </SCRIPT>3。服务器端脚本(以php为例)
    header("location:***.php");   
    注意 :使用该方式  header前不可有任何页面输出.