isnoend2001
asked on
how to write Server.HtmlEncode
I am trying to validate this page: http://roofgenius.com/test2.asp
called from this page: http://roofgenius.com/test.asp
Evidently I need to add Server.HtmlEncode somwhere in this code:
<% name = request.querystring("name" )
response.write "Dear: "& name & ",<br />Thank you for sending us the following:"
comment = request.querystring("comme nt")
comment = Replace(comment, vbcrlf, "<br />")
response.write "<br />" & comment & "<br /><br />If you have asked us to contact you, we will be using the following email address:<br>"
email = request.querystring("email ")
response.write "<span class=""redbold""> Email : " & email & "</span><br /><br />"
%>
If any of this information is incorrect, please click the back button and change it.
We thank you for taking the time to help us be a better company.<br />
<br />
Sincerely, <br />Manager, Roof Genius Customer Support
<div style="text-align:right;ma rgin-top:2 0px">
<a href="jmail.asp?<%=Request .QueryStri ng%>">
<img src="images/buttonsubmit.g if" width="91" height="23" alt="Submit" title=""/> </a>
<a href="support.asp?<%=Reque st.QuerySt ring%>">
<img src="images/buttongoback.g if" width="91" height="23" alt="Go back" title=""/></a>
But how ?
called from this page: http://roofgenius.com/test.asp
Evidently I need to add Server.HtmlEncode somwhere in this code:
<% name = request.querystring("name"
response.write "Dear: "& name & ",<br />Thank you for sending us the following:"
comment = request.querystring("comme
comment = Replace(comment, vbcrlf, "<br />")
response.write "<br />" & comment & "<br /><br />If you have asked us to contact you, we will be using the following email address:<br>"
email = request.querystring("email
response.write "<span class=""redbold""> Email : " & email & "</span><br /><br />"
%>
If any of this information is incorrect, please click the back button and change it.
We thank you for taking the time to help us be a better company.<br />
<br />
Sincerely, <br />Manager, Roof Genius Customer Support
<div style="text-align:right;ma
<a href="jmail.asp?<%=Request
<img src="images/buttonsubmit.g
<a href="support.asp?<%=Reque
<img src="images/buttongoback.g
But how ?
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks it validates, your the man
Are you trying to validate your final html code or validate input?
What is the specific error you are having?