briancostea
Programmer
i am trying to pass a variable via query string. the problem, however is that the variable contains line breaks. i tried to replace them, but no luck.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<a href="prepare.asp?sub=<%=replace(strOver, vbCrLf, "+")%></a>
<a href="prepare.asp?sub=<%=server.URLEncode(strOver)%></a>
session("psub") = replace(Request.QueryString("sub"), "+", vbCrLf)
session("psub") = Request.QueryString("sub")
session("psub") = replace(replace(replace(Request.QueryString("sub"),"\'","'") , "'", "''"), "--", "")
strSQL = "SELECT * FROM tblExperts WHERE tblExperts.Subject_Area = '" & Server.HtmlEncode(session("psub") )& "';"
strSQL = "SELECT * FROM tblExperts WHERE tblExperts.Subject_Area = '" & session("psub") & "';"