读书人

php 注册有关问题 求解

发布时间: 2012-02-11 09:51:35 作者: rapoo

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

读书人网 >PHP

热点推荐