Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not all asp, problem about page submitting to asp.

Status
Not open for further replies.

FVH3

Programmer
Jun 9, 2001
9
GB
Hi,
I have an html page with a simple form (a few textboxes, nothing more) which I can succesfully pass through to an asp page which inserts the data into a database. However there is a problem; if someone put a quote mark (') into the text box and clicks submit it won't work (it interferes with either the asp or sql code, I can't remember which).

Anyway, my question is, is there a way to replace the quote marks with something else on the html page, or perhaps on the asp page - whichever will make it work? Something like a replace("'", "''") or something.

Thanks in advance,
FVH3
 

Hi FVH3
Can you post the ASP and SQL code for teh said problem. It looks like it is getting stuck with the SQL code....

rgds,
9210
 
Thanks but I found out how to fix it. I use a replace(string, "'", "''") before passing it through the SQL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top