View Single Post
  #2 (permalink)  
Old August 20th, 2003, 09:14 AM
flp flp is offline
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Reply With Quote