php编程问题
我想把在这htm 页面里 填写的内容 post 到 php 页面里 ,怎么才能做到呢 ??
我在 前台 编写了这个填写 页面 ,这是个htm 格式。
<html>
<head>
<meta http-equiv="Content-Language" content="zh-tw">
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>留言板 </title>
</head>
<body>
<form method="POST" action="www1.php">
<p>你的姓名: <input type="text" name="name" size="20" </p>
<p>你的性别: <input type="radio" value="1" name="sex" checked>男 <input type="radio" value="0" name="sex">女 </p>
<p>你的email: <input type="text" name="email" size="20"> </p>
<p>你的留言内容: </p>
<p> <textarea rows="9" name="info" cols="35"> </textarea> </p>
<p> <input type="submit" value="提交" name="B1"> <input type="reset" value="重新设定" name="B2"> </p>
</form>
</body>
</html>
这个也页面是 php格式 。
<?
echo $name;
echo $email;
echo $sex;
echo $info;
?>
为什么这个php页面 会报错 Notice: Undefined variable: name in E:\runphp\htdocs\www1.php on line 4
Notice: Undefined variable: email in E:\runphp\htdocs\www1.php on line 6
Notice: Undefined variable: sex in E:\runphp\htdocs\www1.php on line 8
Notice: Undefined variable: info in E:\runphp\htdocs\www1.php on line 10 php页面的语句全是错的为什么啊 。。
谢谢大家 !!1