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

Follow this and find that the verification code module on the registration page prompts an error. . . .

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

reply all(2)
李文?。? class=

means the verification code is wrong.

Ha ha. I found the problem and I wrote the wrong code.

  • reply &lt;?php //Start session session session_start(); header('content-type:text/html;charset=utf-8'); //Receive form data $username=trim($_POST['username']); $password=md5(trim($_POST['password'])); //Password MD5 encryption $password_confirm=md5(trim($_POST['password'])); $code=$_POST['code']; if($username==''||$password==''||$password_confirm==''){ echo "&lt;script&gt;alert('Please make sure the information is complete!');history.back();&lt;/script&gt;"; }elseif($code!=$_SESSION['var_code']){ echo "&lt;script&gt;alert('The verification code is incorrect!');history.back();&lt;/script&gt;"; }else{ if($password==$password_confirm){ //2. Connect to MYSQL and select the database $link = mysql_connect('localhost','root','root') or die("Database connection failed!"); mysql_query('set names utf8'); mysql_query('use `demodb`'); //Execute sql $sql="select * from `manager` where `username`='$username'"; $res=mysql_query($link,$sql); $nums=mysql_num_rows($res); if($nums){ //Exists echo "&lt;script&gt; alert('Username already exists, please change it!');history.back();&lt;/script&gt;"; exit; }else{ $sql_insert="insert into manager values('$username','$password')"; $res_insert=mysql_query($link,$sql_insert); if($res_insert){ echo "&lt;script&gt;alert('Registration successful!');history.back();&lt;/script&gt;"; }else{ echo "&lt;script&gt;alert('Registration failed!');history.back();&lt;/script&gt;"; } } } else{ echo "&lt;script&gt;alert('Passwords are inconsistent!');history.back();&lt;/script&gt;"; } } ?&gt;
    王承毅 author 2018-04-21 15:04:36
lge

What error are you reporting?

Popular Topics
More>
Popular Articles
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template