List语言结构

来源:互联网 发布:设计彩印淘宝推荐 编辑:程序博客网 时间:2024/06/04 18:42

 

 

<html>    <head>        <title>List语言结构</title>    </head><body><form name="form1" method="post" action="list.php">    <table>        <tr>            <td>帐户:</td>            <td><input name="user" type="text" id="user" /></td>        </tr>        <tr>            <td>密码:</td>            <td><input name="pwd" type="password" id="pwd" /></td>               </tr>        <tr>            <td></td>            <td><input name="submit" type="submit" value="提交"/></td>               </tr>    </table></form><?phpwhile(list($name,$value)=each($_POST)){    if($name != "submit"){        echo "$name = $value<br>";    }}?></body></html>