I have passed some variables via a querystring to an asp page. The variables are passing ok but when I try to concatenate them into a string sql statement they are not appearing:
For example:
What am I doing wrong? I've tried using a straight Request("flagge r") in the concatenation and that did not work.
Thanks,
cj
For example:
Code:
dim RecordID, callerPage, FlaggerID
RecordID = Request("edit")
callerPage = Request("callerPage")
FlaggerID = Request("flagger")
'Response.Write ("flagger is: " & FlaggerID) '<-------variables will print here!
'Response.Write (" / RecordID is : " & RecordID)
if request("act") = "update" then
sql_update = "Update TimeAct set reviewerNotes= '" & replace(request("reviewerNotes"),"'", "''") & "'"
sql_update = sql_update & ", Flagged = 1, FlaggerID = " & FlaggerID & ", FlaggedDate = '" & Now() & "' where [ID] = " & RecordID
response.Write sql_update '<---------Variables do not show here in this string!
response.end
conn.Execute sql_update
Thanks,
cj
Comment