PHP——简单的表单提交
<body> <form name="" method="post" action="CHULI.php"> <input type="text" name="uid"><br /> <input type="text" name="pwd"><br /> <input type="submit" name="button" value="登陆"> </form> </body>
在这里推荐用post
因为用get 显示传输的数据 有长度限制
在CHULI.PHP中的代码
<?php echo $_POST["uid"]; ?>

在第一个页面输入用户名后,
会交到CHULI页面处理,然后在新的页面输出用户名
 
                    
                 
                
            
         
 浙公网安备 33010602011771号
浙公网安备 33010602011771号