这是什毛意思

作者:李文彪
日期:2011/12/5 9:07:16

conn.Execute("Insert Into tbAddress(strName,strSex,intAge,strTel,strEmail,strIntro,dtmSubmit) Values("萌萌","女",21,"6112211","mm@372.net","金融系同学",#2008-8-8#)")

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>登陆界面</title>
</head>

<body>
<form name="登陆界面" method="post" action="2.asp">
   姓名:<input type="text" name="xingming">
   <br>
   密码:<input type="password" name="mima">
   <br>
   性别:<input type="radio" name="xingbie" value="男">男
         <input type="radio" name="xingbie" value="女">女
   <br>
   爱好:<input type="checkbox" name="aihao" value="羽毛球">羽毛球
         <input type="checkbox" name="aihao" value="乒乓球">乒乓球
   <input type="checkbox" name="aihao" value="足球">足球
   <input type="checkbox" name="aihao" value="篮球">篮球
   <input type="checkbox" name="aihao" value="网球">网球
   <br>
   职业:<select name="zhiye">
         <option value="银行">银行</option>
   <option value="教师">教师</option>
   <option value="公务员">公务员</option>
   <option value="职工">职工</option>
   <option value="企业">企业</option>
   </select><br>
  <input type="submit" name="tijiao" value="确定提交">
  <input type="reset" name="chongzhi" value="重置">
</form>
</body>

 

<body>
   <%
   dim a,b,c,d,e
   a=request.form("xingming")
   b=request.form("xingbie")
   c=request.form("mima")
   d=request.form("aihao")
   e=request.form("zhiye")
 %>
 <%
 dim conn
 Set conn=Server.CreateObject("ADODB.Connection")
 conn.Open "address"
 conn.Execute("Insert Into shiyan(xingming,mima,xingbie,aihao,zhiye) Values("萌萌","女",21,"6112211","mm@372.net","金融系同学",#2008-8-8#)")
 
</body>

</html>

分享