ホームページ  >  記事  >  バックエンド開発  >  PHP 登録関連の解決すべき問題

PHP 登録関連の解決すべき問題

WBOY
WBOYオリジナル
2016-06-13 13:52:28983ブラウズ

PHP 登録の問題は解決しました!


注意: 未定義の変数: D:wwwbbsreg.php の 5 行目の POST


PHP コード
<!--

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)</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[ユーザー名]','$POST[パスワード]','$POST[メールアドレス]' ???

$_POST
声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。