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页面处理,然后在新的页面输出用户名

posted on 2016-01-24 21:57  Chen_s  阅读(392)  评论(0编辑  收藏  举报

导航