Notice: Undefined variable: POST in D:\www\bbs\reg.php on line 5
<?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>
<?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>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货