phentalmyst
Programmer
hi all,
ive tried and tried to pull this form entry into a database update and it just wont work. if i take the variable "ns" and make it an actual text string, the update works fine...but if i use a "request.form("theformobjectnamehere"
it wont pull. please help! thanks! here's my code:
<%@ LANGUAGE = VBScript %>
<html>
<head>
<title>moongroover editor</title>
<%
Dim DataConn
Dim CmdUpdateRecord
Dim MYSQL
Dim ns
Dim edited
Set DataConn = Server.CreateObject("ADODB.Connection"
Set CmdUpdateRecord = Server.CreateObject("ADODB.Recordset"
DataConn.Open "DBQ=" & Server.Mappath("../data/bios.mdb"
& ";Driver={Microsoft Access Driver (*.mdb)};"
edited = request.querystring("groover"
ns = request.form("instruments"
MYSQL = "SELECT instruments FROM bios WHERE groover="&edited
CmdUpdateRecord.Open MYSQL, DataConn, 1, 3
CmdUpdateRecord.Fields("instruments"
= ns
CmdUpdateRecord.Update
CmdUpdateRecord.Close
Set CmdUpdateRecord = Nothing
DataConn.Close
Set DataConn = Nothing
%>
</head>
<body>
<center>Good job <%=edited%>!!</center><br><br><%=ns%>
</body>
</html>
ive tried and tried to pull this form entry into a database update and it just wont work. if i take the variable "ns" and make it an actual text string, the update works fine...but if i use a "request.form("theformobjectnamehere"
<%@ LANGUAGE = VBScript %>
<html>
<head>
<title>moongroover editor</title>
<%
Dim DataConn
Dim CmdUpdateRecord
Dim MYSQL
Dim ns
Dim edited
Set DataConn = Server.CreateObject("ADODB.Connection"
Set CmdUpdateRecord = Server.CreateObject("ADODB.Recordset"
DataConn.Open "DBQ=" & Server.Mappath("../data/bios.mdb"
edited = request.querystring("groover"
ns = request.form("instruments"
MYSQL = "SELECT instruments FROM bios WHERE groover="&edited
CmdUpdateRecord.Open MYSQL, DataConn, 1, 3
CmdUpdateRecord.Fields("instruments"
CmdUpdateRecord.Update
CmdUpdateRecord.Close
Set CmdUpdateRecord = Nothing
DataConn.Close
Set DataConn = Nothing
%>
</head>
<body>
<center>Good job <%=edited%>!!</center><br><br><%=ns%>
</body>
</html>