php 注册有关问题 求解

WBOY
Release: 2016-06-13 13:52:28
Original
982 people have browsed it

php 注册问题 求解!


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


PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><?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)";
}
?>
Copy after login
用户名:
确认密码:
邮箱:


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

$_POST
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!