|
我的系统为Redhat9.0,php为系统自带的4.22版
/*post.html*/
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=GB2312">
<title>留言板</title>
</head>
<body>
<form method="post" action="show.php">
<div align="center"><center><table border="0" width="80%" cellspacing="1">
<tr>
<td width="11%" bgcolor="#C0C0C0"><strong>笔名</strong></td>
<td width="89%"><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td width="11%" bgcolor="#C0C0C0"><strong>E-Mail</strong></td>
<td width="89%"><input type="text" name="email" size="20"></td>
</tr>
<tr>
<td width="11%" bgcolor="#C0C0C0" valign="top"><strong>留言</strong></td>
<td width="89%"><textarea rows="4" name="message" cols="36">
</textarea><br>
<input type="submit" value="送出" name="B1"><input type="reset" value="重填"
name="B2"></td>
</tr>
</table>
</center></div>
</form>
</body>
</html>
/*show.php*/
<?php
echo "笔名username<br>";
echo "E-Mailemail<br>";
echo "留言:<br>$message";
?>
lynx 192.168.1.6/nyb/post.html可是表单数据提交不到$username,$email,
$message |
|