转到另一个页面,php中的密码是正确的


Go to another page the password is correct in php

我正在用php和html开发一个应用程序,其中用户必须在输入中输入一个数字。但是,如果数字是1,按下按钮会打开另一页,但如果数字不同,则不会打开任何内容。我使用的代码如下:

<html>
  <head>
    <title>RHM</title> 
      <style type="text/css">
    h1 { color: red; font-family: arial; font-size: 3em; font-weight:   bolder; }
    p { color: navy; font-family: Verdana; }
   </style>
  </head>
 <body>
   <h1 align="center">INGRESE CONTRASE&Ntilde;A</h1>
     <form  action="#" method="post" >
   <p align="center"> <input type="password" name="contras" style="width:200px;height:50px;background-color:yellow;color:blue;font-size:14pt;font-family: Comic Sans MS;text-align:center;padding-right:10px;"/></p>
   <p align="center"  ><input type="submit" value="Entrar" /></p>
<?
  $Contraseña=$_POST['contras'];
   if ($Contraseña==1) {
     action=="Decidir.php";
  }
?>
  </form>
 </body>
</html>

到目前为止,这没有任何作用。请帮忙谢谢大家。

我这样解决了它:

....
<?
 $Contraseña=$_POST['contras'];
   if ($Contraseña==10836053) {
     header("Location: Decidir.php");
  }
?>
</form>

谢谢sam_io。