zoukankan      html  css  js  c++  java
  • 增加记录

    增加记录窗体为add.asp

    <form name="form1" method="post" action="insert.asp">

    <input type="submit" name="submit" value="增加">

    .

    .

    .

    </form>

    在insert.asp中具体操作数据库

    <!--include file="conn2.asp"-->

    <%

    name1=request("name")

    pifa=CCur(request("pifa"))

    danwei=request("danwei")

    solArea=request("selArea")

    lingshou=CCur(request("lingshou"))

    number1=CInt(request("shuliang"))

    set rs1=CreateObject("ADODB.RecordSet")

    sql="select * from cailiao"

    rs1.open sql,conn,1,3

    rs1.addnew

    rs1("name")=name1

    rs1("Area")=selArea

    rs1("danwei")=danwei

    rs1("pifa")=pifa

    rs1("lingshou")=lingshou

    rs1.Update

    rs1.Close

    response.Redirect "add.asp"

    %>

  • 相关阅读:
    codeforces round #433 div2
    bzoj1951
    bzoj3620
    bzoj2286
    bzoj1513
    bzoj4390
    codeforces round 430 div 2
    bzoj3339
    准备实现体积蒙皮
    看牛顿法的改进与验证局部收敛
  • 原文地址:https://www.cnblogs.com/djcsch2001/p/2035769.html
Copyright © 2011-2022 走看看