保存成了.html文件,那
<?php
?>
这一段代码放到
<body>
</body>
里面才对,不然的话无法识别,难道???
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<!-- ------------------------登陆表单------------------------ -->
<form name="form1" method="post">
<table width="323" border="1" cellpadding="1" cellspacing="1"
bordercolor="#66CC33" bgcolor="#FFFFFF">
<tr><td width="118" height="24" align="right" bgcolor="#CCFF33">用户名:</td><td width="192" height="24" bgcolor="#CCFF33"><input name="user"
type="text" class="inputcss" id="user" size="24"></td>
</tr>
<tr><td height="24" align="right" bgcolor="#CCFF33">密码:</td>
<td height="24" bgcolor="#CCFF33"><input name="pwd" type="password" class="inputcss" id="pwd" size="24"></td>
</tr>
<tr align="center" bgcolor="#CCFF33">
<td height="24" colspan="2"><input name="submit" type="submit"
value="登陆"></td>
</tr>
</table>
</form>
<?php
while (list($key,$val)=each($_POST)){
if($key != "submit")
echo "$key=$val<br>";
}
?>
</body>
</html>