You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
486 B
16 lines
486 B
<?php
|
|
//处理用户注册信息功能的实现
|
|
require_once('./system/dbConn.php');
|
|
//连接数据库
|
|
$link=connect();
|
|
//使用$_POST数组获取表单中输入的数据
|
|
$username=$_POST["username"];
|
|
$password=$_POST["password"];
|
|
$gender=$_POST["gender"];
|
|
$tel=$_POST["tel"];
|
|
$email=$_POST["email"];
|
|
//判定注册用户不能重名
|
|
$sql0="select * from users where uname='$username'";
|
|
//echo $sql0;
|
|
$rs0=mysqli_query($link,$sql0);//结果集(多条记录组成的变量)
|