chirea
(chirea)
注册会员

一般会员
UID 29417
精华
0
积分 114
帖子 91
金钱 114 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2004-6-16
状态 离线
|
[推荐阅读] OA演示 http://hero913.xinwen365.com/index0.htm
没有!全部代码是这样
<? include("conn.php"); ?>
<form method="post" action=""> 姓名:<input name="user" type="text" ><br> 姓别:<input type="radio" name="sex" value="男">男<input type="radio" name="sex" value="女">女<br> 年龄:<input name="age" type="text" ><br> 电话:<input name="tel" type="text" ><br> 邮箱:<input name="email" type="text" ><br> 地址:<input name="address" type="text" ><br> <input type="submit" value="提交"> </form> <?
$users = $_POST[user]; $sex =$_POST[radio]; $age =$_POST[age]; $tel =$_POST[tel]; $email =$_POST[email]; $address =$_POST[address];
$add = "INSERT INTO users(users,sex,age,tel,email,address) VALUES ('$users','$radio','$age','$tel','$email','$address')";
$query=mysql_query($add); mysql_close($myconn);
?>
|
|