<form action='jump.php' method='post' name=''>// ....</form>

解决方案 »

  1.   

    验证登陆及其跳转情况的代码:
    if() {                    // 验证成功后跳转到你要跳转的页面
        echo '<meta HTTP-EQUIV="Refresh" Content="0;URL=/another.php">';
    } else {                       //验证失败跳转到原来的登陆页面
        echo '<meta HTTP-EQUIV="Refresh" Content="0;URL=/back.php">';
    }if哪个验证代码就不帮你写了,基本就是这样跳转
      

  2.   

    如果你的验证用户名和密码放入在数据库里面,给你写个简单的(只输入用户名和密码的)
    $sqlstr = "select * from user_infomation where username='得到你提交过来的用户名' and password='得到你提交过来的密码'";
    $query = mysql_query($sqlstr);
    if($data = mysql_fetch_array($query)) {
        echo '<meta HTTP-EQUIV="Refresh" Content="0;URL=/another.php">';
    } else {                       //验证失败跳转到原来的登陆页面
        echo '<meta HTTP-EQUIV="Refresh" Content="0;URL=/back.php">';
    }如果你的验证用户名和密码是固定的,给你写个简单的(只输入用户名和密码的)
    if((得到你提交过来的用户名 == "root") and (得到你提交过来的密码 == "123456")) {
        echo '<meta HTTP-EQUIV="Refresh" Content="0;URL=/another.php">';
    } else {                       //验证失败跳转到原来的登陆页面
        echo '<meta HTTP-EQUIV="Refresh" Content="0;URL=/back.php">';
    }上面是最简单的2中方式  供参考
      

  3.   

    楼主问的这个也太基础了,form action就是这个功能呀,如果你用submit就直接可以转到另一页了