PHP post表单 为什么显示网页为空白
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/l...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form action="input.php" method="POST" >
<p>姓名:<input type="text" name="name" size="20"></p>
<p>性别
男
<input name="sex" type="radio" value="1" checked>
女
<input type="radio" name="sex" value="0">
</p>
<p>Email:<input type="text" name="email" size="20"></p>
<p>留言:</p>
<p><textarea name="info" cols="35" rows="9"></textarea></p>
<p>
<input type="submit" name="B1" value="提交">
<input type="reset" name="B2" value="重新设定">
</p>
</form>
</body>
</html>
input.php
<?php
echo $name;
?> 展开
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form action="input.php" method="POST" >
<p>姓名:<input type="text" name="name" size="20"></p>
<p>性别
男
<input name="sex" type="radio" value="1" checked>
女
<input type="radio" name="sex" value="0">
</p>
<p>Email:<input type="text" name="email" size="20"></p>
<p>留言:</p>
<p><textarea name="info" cols="35" rows="9"></textarea></p>
<p>
<input type="submit" name="B1" value="提交">
<input type="reset" name="B2" value="重新设定">
</p>
</form>
</body>
</html>
input.php
<?php
echo $name;
?> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询