国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Seite zur Registrierungsverarbeitung
0
3
1248

Folgen Sie den Anweisungen und stellen Sie fest, dass das Best?tigungscode-Modul auf der Registrierungsseite einen Fehler anzeigt. . . .

李文?。?/>
                    <div   id= 李文?。?/span>

Antworte allen(2)
李文?。? class=

就是提示驗證碼錯誤。

哈哈。找到問題了,自己寫錯代碼了。

  • Antwort &lt;?php //啟動session會話 session_start(); header('content-type:text/html;charset=utf-8'); //接收表單數(shù)據(jù) $username=trim($_POST['username']); $password=md5(trim($_POST['password'])); //密碼MD5加密 $password_confirm=md5(trim($_POST['password'])); $code=$_POST['code']; if($username==''||$password==''||$password_confirm==''){ echo &quot;&lt;script&gt;alert('請確定信息的完整性!');history.back();&lt;/script&gt;&quot;; }elseif($code!=$_SESSION['var_code']){ echo &quot;&lt;script&gt;alert('驗證碼不對哦!');history.back();&lt;/script&gt;&quot;; }else{ if($password==$password_confirm){ //2.連接MYSQL,選擇數(shù)據(jù)庫 $link = mysql_connect('localhost','root','root') or die(&quot;數(shù)據(jù)庫連接失敗!&quot;); mysql_query('set names utf8'); mysql_query('use `demodb`'); //執(zhí)行sql $sql=&quot;select * from `manager` where `username`='$username'&quot;; $res=mysql_query($link,$sql); $nums=mysql_num_rows($res); if($nums){ //存在 echo &quot;&lt;script&gt; alert('用戶名已存在,請換個名稱!');history.back();&lt;/script&gt;&quot;; exit; }else{ $sql_insert=&quot;insert into manager values('$username','$password')&quot;; $res_insert=mysql_query($link,$sql_insert); if($res_insert){ echo &quot;&lt;script&gt;alert('注冊成功!');history.back();&lt;/script&gt;&quot;; }else{ echo &quot;&lt;script&gt;alert('注冊失敗!');history.back();&lt;/script&gt;&quot;; } } } else{ echo &quot;&lt;script&gt;alert('密碼不一致!');history.back();&lt;/script&gt;&quot;; } } ?&gt;
    王承毅 Autor 2018-04-21 15:04:36
lge

報什么錯呢

Beliebte Themen
Mehr>
Popul?re Artikel
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage