hello~
i just join in this discussion ....er i am Chinese,so my English is poor
i search this problem in Google,but i can't find some useful information
some people said PHP version cause this problem...
i use PHP 5.3.3 but i saw PHP 5.2.1 books
<html>
<title>
test
</title>
<body>
<div align="center">注册表单
<form id="form1" name="form1" method="post" action="1.php">
用户:<input type="text" name=:"username" id="username" /><br>
密码:<input type="text" name=:"pass" id="pass" /><br>
邮件:<input type="text" name=:"email" id="email" /><br>
<input type="submit" name=:"button" id="button" value="提交" />
</form>
</div>
</body>
</html>
<?php
echo "注册的用户名: ".$_POST["username"]."<br>";
echo "注册的密码: ".$_POST["pass"]."<br>";
echo "注册的邮件: ".$_POST["email"]."<br>";
echo "表单按钮: ".$_POST["button"]."<br>";
?>
error:
Notice: Undefined index: in D:\Apache2.2\htdocs\1.php on line 7
注册的用户名:
Notice: Undefined index: in D:\Apache2.2\htdocs\1.php on line 8
注册的密码:
Notice: Undefined index: in D:\Apache2.2\htdocs\1.php on line 9
注册的邮件:
Notice: Undefined index: in D:\Apache2.2\htdocs\1.php on line 10
表单按钮:
thans your support:)