A
Auddog
I'm passing a variable in a Request.QueryString and now I'm wanting to
insert that variable into my database along with other information from the
form. All the other inserts use something like this adoRS("fk_projectid") =
Request.Form("title"). I just can't seem to get the varibale that I pass
into the database. Below is my code
<%
DIM adoDB, adoRS, objConn, id
id = Request.QueryString("id")
' Create the Database Object, and connect to it
Set adoDB = Server.CreateObject("ADODB.Connection")
adoDB.Open strConnection
' Create the Recordset Object
Set adoRS = Server.CreateObject("ADODB.RecordSet")
adoRS.Open "ShopLog", adoDB, adLockOptimistic, adCmdTable
adoRS.AddNew
adoRS("fk_projectid") = Request.Write("id")
adoRS("sd_title") = Request.Form("title")
adoRS("copies") = Request.Form("copies")
adoRS("duedate") = Request.Form("duedate")
adoRS.Update
' Tidy up afterwards
adoRS.Close
Set adoRS = Nothing
adoDB.Close
Set adoDB = Nothing
%>
insert that variable into my database along with other information from the
form. All the other inserts use something like this adoRS("fk_projectid") =
Request.Form("title"). I just can't seem to get the varibale that I pass
into the database. Below is my code
<%
DIM adoDB, adoRS, objConn, id
id = Request.QueryString("id")
' Create the Database Object, and connect to it
Set adoDB = Server.CreateObject("ADODB.Connection")
adoDB.Open strConnection
' Create the Recordset Object
Set adoRS = Server.CreateObject("ADODB.RecordSet")
adoRS.Open "ShopLog", adoDB, adLockOptimistic, adCmdTable
adoRS.AddNew
adoRS("fk_projectid") = Request.Write("id")
adoRS("sd_title") = Request.Form("title")
adoRS("copies") = Request.Form("copies")
adoRS("duedate") = Request.Form("duedate")
adoRS.Update
' Tidy up afterwards
adoRS.Close
Set adoRS = Nothing
adoDB.Close
Set adoDB = Nothing
%>