总体过程和登录验证基本一致,参考https://blog.csdn.net/MixedSignals/article/details/106210400
<form action="./02_reg.php" method="post">
注册账号: <input type="text" name="regname" placeholder="请您输入注册账号"><br>
注册密码: <input type="password" name="regpwd" placeholder="请您输入注册密码"><br>
<button>注册</button>
</form>
①接收前端的参数