<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>应用list()函数遍历数组</title>
<style type="text/css">
<!--
.STYLE1 {
	color: #FF0000;
	font-size: 12px;
}
-->
</style>
</head>

<body>
<form name="form1" method="post">
     <table width="600" height="400" border="0" cellpadding="0" cellspacing="0" background="images/b_1.jpg">
       <tr>
         <td width="343" height="190" align="right">&nbsp;</td>
         <td width="122" height="24">&nbsp;</td>
         <td width="135">&nbsp;</td>
       </tr>
       <tr>
         <td height="29" align="right">&nbsp;</td>
         <td height="24"><input name="用户名" type="text" class="inputcss" id="user" size="15"></td>
         <td>&nbsp;</td>
       </tr>
       <tr align="center">
         <td height="34">&nbsp;</td>
         <td height="34" align="left"><input name="密码" type="password" class="inputcss" id="pwd" size="15"></td>
         <td height="34">&nbsp;</td>
       </tr>
       <tr align="center">
         <td height="38" colspan="2" align="right"><input type="image" name="imageField" src="images/b_2.jpg">
         <input type="image" name="imageField2"  onClick="form.reset();return false;" src="images/b_3.jpg"></td>
         <td height="38">&nbsp;</td>
       </tr>
       <tr align="center">
         <td height="60"><span class="STYLE1">
<?php
//输出用户登录信息
while(list($name,$value)=each($_POST)){
	if($name!="imageField_x" and $name!="imageField_y"){
    	echo "$name: $value<br>";
	}
}
?>&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;</td>
         <td height="60">&nbsp;</td>
         <td height="60">&nbsp;</td>
       </tr>
       <tr align="center">
         <td height="49" colspan="3">&nbsp;</td>
       </tr>
  </table>
</form>


</body>
</html>
