注册页面的简单编写
新建register.php页面:
代码如下:
<?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>
运行结果: