cr***@gmx.de wrote:
I have a VB application sending data via post to an ASP page.
The application sends two variable: id, txt
If txt has the & sign in its string, it cause trouble. E.g.:
id = 1
txt = "Hello & more"
If I take a look into Request.Form() array in asp page, it shows the
following:
id = 1
txt = "Hello "
more = ""
I guess I have to encode the txt variable in my VB application and
uncode it on the receiving part. Wondering that I can not pass
variable like "Hello & more" directly via post to an asp page. Is
there any change to get the right content from txt without modify the
VB application?
Thanks for help.
Given that this test produces the expected results:
<%
for each key in Request.Form
Response.Write key & ": " & Request.Form(key) & "<BR>"
next
%>
<HTML>
<BODY>
<FORM action="" method=POST id=form1 name=form1>
<INPUT type="text" id=text1 name=id value="1">
<INPUT type="text" id=text2 name=txt value="this text & More text">
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</FORM>
</BODY>
</HTML>
I have to say that the method you are using to post the data is causing the
problem. What are you using to post the data? XMLHTTP? Something else? Let's
see a little code to help us reproduce the problem.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"