<?php
session_start();
if(isset($ri)){echo"<script> alert('登陆成功
!')</script>";}
else {
 echo"<script> alert('请您注册登陆!')</script>";
 header("location:index.php"); 
url='index.php'>";
 }
?>

解决方案 »

  1.   

    <?php
    session_start();
    if(isset($ri))
    {
        echo"<script> alert('登陆成功!')</script>";
    }
    else 
    {
        echo"<script> alert('请您注册登陆!')</script>";
        header("location:index.php"); 
     }
    ?>
    是这个!
      

  2.   

    header("Refresh: 0; URL=index.php");
    echo"<script> alert('请您注册登陆!')</script>";
      

  3.   

    echo"<meta http-equip=refresh content=\"0; 
    url=index.php\">";
      

  4.   

    echo"<meta http-equip=refresh content=\"0; 
    url=index.php\">";