填入表单提交后:
复制代码 代码如下:
<table cellpadding="0" cellspacing="0">
<form method="post" action="abc.php">
<tr>
<td >管理员:</td>
<td><input type="text" /></td>
</tr>
<tr>
<td>密 码:</td>
<td><input type="password" /></td>
</tr>
<tr>
<td> </td>
<td> <input type="submit" value="submit" /></td>
</tr>
</form>
</table>
<?php
if(!isset($_POST['submit']))
return ;
if($_POST['submit']=='submit'){
$username = $_POST['username'];
$password = $_POST['password'];
}
echo <<<EOT
<table cellpadding="0" cellspacing="0">
<tr>
<td> 管理员:$username</td>
</tr>
<tr>
<td valign="middle">密码:$password</td>
</tr>
</table>
EOT;
?>
新闻热点
疑难解答