New register.php page:
The code is as follows:
<?php ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form action="check.php" method="post"> 用户名:<input type="text" id="name" name="name"/><br> 密码:<input type="password" id="pwd" name="pwd" /><br> 手机号:<input type="text" id="phone" name="phone" /><br> <input id="msg" hidden> <input id="code" hidden name="code"> <input type="text" id="yzm" name="yzm"><input type="button" id="yzmfs" value="发送短信验证码" onclick="settime(this)" /> <br> <input type="submit" id='register' name='register' value="注册"> </form> </body> </html>
Running results: