|
yogaboy -> Don't Quote me! (11/15/2004 15:08:35)
|
I have a link to a document made from info the user gave in a form. The link doesn't work when people use single quotes in the form. I've got this... mySQL = "SELECT DocTitle, FileName FROM KeyDocs" myFileName = myRS("FileName") myFileName = Replace(myFileName, "'", "''") Response.write "<TR><TD><P><a href='/documents/" & myFileName & "'>" & myRS("DocTitle") & "</A>" But using the Filename Children'sNSF09MentalHealth.pdf just gives a link of /documents/Children What am I missing? I've checked the values using Response.writes and tried using both for the link myRS("Filename") = Children'sNSF09MentalHealth.pdf and myFileName = Children''sNSF09MentalHealth.pdf
|
|
|
|