asp +access 資料儲存插入代碼

來源:互聯網
上載者:User

asp教程 +access 資料儲存插入代碼
if request.QueryString("ag")  then
 set conn=server.createobject("adodb.connection")
 conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("../skyj.mdb")
 ag=request.form("ag")
 amount=request.form("amount")
 name2=request.form("name")
 tel=request.form("tel")
 email=request.form("email")
 QQ=request.form("QQ")
 bolg=request.form("bolg")
 blank=request.form("blank")
 exec="insert into 訂單(訂單,數量,人名,電話,Email,QQ,部落格,銀行卡號)values('"+ag+"','"+amount+"','"+name2+"','"+tel+"','"+email+"','"+QQ+"','"+bolg+"','"+blank+"')"
 conn.execute exec
 conn.close
 set conn=nothing
end if
%>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.3lian.net/1999/xhtml">
<html>
<head>
<title>asp +access 資料儲存插入代碼</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="../05-17/example5.asp">
  <table width="70%" border="0">
    <tr>
      <td>產品
      <input type="text" name="ag"  value="">      </td>
      <td>數量 (斤)
      <input type="text" name="amount" value=""></td>
      <td>姓名
        <input type="text" name="name" value=""></td>
      <td>電話
         <input type="text" name="tel" value=""></td>
      <td>Email
         <input type="text" name="email" value=""></td>
      <td>QQ
         <input type="text" name="QQ" value=""></td>
      <td>部落格<input type="text" name="bolg" value=""></td>
      <td>銀行卡號<input type="text" name="blank" value=""></td>
    </tr>
  </table>
  <br>
  <br>
  <br>
  <input type="submit" name="Submit" value="提交">
  <input type="reset" name="Submit2" value="重設">
 
</form>
<br>
</body>
</html>
 


 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.