Can you explain on how you get that on a querystring when form uses post? Or confirm if anywhere else donw the code you use Request.form("txtName") to assign the value to the same variable. Only possibility I could see for getting the value from QS is you might be coming to this page from the previous page, from where txtname would have been passed as QueryString to this page. Else I can't imagine it getting from Querystring.
Try this on top of your page.
Code:
Response.write "Req from Form : " & Request.Form("txtName") & "<BR>"
Response.write "Req from QS : " Request.Querystring("txtName")
Response.end
and see which of them gets you the value(Form/QS).
Also I would like to know if this is one of the form fields that you are requesting. In case of using POST you should be using Request.Form("txtName") to retireve its value on submission. May be if you can post your code here, I would try and see if I am missing something.
Instead you can use Server.HTMLEncode(txtname) to resolve that.
Cheers!
_________________________
- Vijay G
Strive for Perfection