数据库总是接收不到数据
<html><head>
<title>注册页面</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<h1>新用户注册</h1>
<hr>
<form method="post" action="biaodang.php">
<table>
<tr>
<td>请输入用户名: <input type="text" name="uname"></td>
</tr>
<tr>
<td>请输入密码:   <input type="text" name="upad"></td>
</tr>
<tr>
<td>请再输入密码:  <input type="text" name="upadd"></td>
</tr>
<tr>
<td>请输入地址:   <input type="text" name="uadd"></td>
</tr>
<tr>
<td>请输入手机号: <input type="text" name="uph"></td>
</tr>
<tr>
<td><input type="submit" value="注册"> <input type="reset" value="重置"></td>
</tr>
</table>
</body>
</html>
<html>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<?php
$name=$_POST["uname"];
$password=$_POST["upad"];
$repassword=$_POST["upadd"];
$useaddress=$_POST["uadd"];
$usephone=$_POST["uph"];
if($password != $repassword)
{
echo "<script>alert('两次密码输入错误,请重新输入')</script>";
echo"<script>location='index.php'</script>";
}
else{
$link= mysql_connect("localhost","root","") or die("数据库连接错误".mysql_error());
mysql_select_db("test",$link);
$sql= "insert into pro(uname,upad,uadd,uph) value ('$name','$password','$useaddress','$usephone')";
$sqlselect="select * from pro order by id";
mysql_close($link);
}
?>
</body>
</html>