日期:2014-05-17  浏览次数:20590 次

php 注册问题 求解!


Notice: Undefined variable: POST in D:\www\bbs\reg.php on line 5


PHP code
<?php
 include("conn.php");
 include("head.php");
if(isset($_POST['submit'])) {
    $sql="insert into user_list(uid,username,password,email,regdate)values('','$POST[username]','$POST[password]','$POST[email]',now())";
   mysql_query($sql);
    "<script language = \"javascript\">alert('添加成功');history.go(-1)</script>";
}
?>
<form action="reg.php" method="post">
用户名:    <input type="text" name="username" /><br>
确认密码:  <input type="password" name="password" /><br>
邮箱:  <input type="text" name="email" /><br>
  <input type="submit" name="submit" value="注  册"/>
  <input type="reset" name="reset" value="重  置"/>
  </form>


------解决方案--------------------
,'$POST[username]','$POST[password]','$POST[email]' ???

$_POST