Hi,
I think you need to make use of the execute() function. Passing a string to the execute() function actually runs the string as VBScript.
This bit of code takes every form item from the previous page, and replaces all apostrophes within for double apostrophes, and assigns it to a variable of the form items HTML name (useful for building a SQL string):
for each Item in Request.Form
execute("Dim " & Item)
execute(Item & " = replace(request.form(""" & item & """), ""'"", ""''"")")
next
|