By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

http post on submit, URL being encoded

P: n/a
Prior to posting a form (.asp page) to a URL, I check the parameters
being passed and they are not encoded, but when the URL is served it is
encoded. How can I prevent this?

The code is as follows:
<%
Response.Buffer = True
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="Content-Type: text/plain">
<SCRIPT language="JavaScript">
function PostToURL() {

alert(document.formA.Source.value);
document.formA.submit();
}
</SCRIPT>
</HEAD>

<BODY bgcolor="#FFFFFF" onLoad="PostToURL();">

<form name="formA" action="<%= Session("strURL") %>">
<input type="hidden" name='Source' value="<%= Session("strOpts") %>"

</form>

</BODY>
</HTML>

My alert prior to the form submit shows:
http://website.com?planSource=TEST&p...nId=AAABBB0004

The result of the post is:
http://website.com?planSource=TEST%2...d%3DAAABBB0004

Feb 1 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Thanks for the reply, the problem ended up being that my form tag was
missing method='post'

Feb 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.