LarrySteele
Programmer
Haven't worked with .asp for years, but can't imagine I'm that far off.
I'm trying to POST variables to a .asp page. For some reason, the receiving page does not see the variables.
My posting page
My receiving page
On the receiving page, I get this:
[tt]
pers_key:
pin:
[/tt]
If I change from POST to GET, the receiving page displays the variables:
So, from the GET method, the receiving page displays this:
On the receiving page, I get this:
[tt]
pers_key: 123
pin: ABC
[/tt]
I do not want to have form variables visible, hence my desire to POST the variables.
I tried using Request.Form(), but that had no effect - variables only appeared when using the GET method. I've stopped by 4Guys, and took several strolls through Google. So far, no joy.
Am I missing something???
Assistance would be GREATLY appreciated!
I'm trying to POST variables to a .asp page. For some reason, the receiving page does not see the variables.
My posting page
Code:
<form name="sso_logon" method="post" action="[URL unfurl="true"]http://somepage.asp">[/URL]
<cfoutput query="get_key">
<input type="text" name="personid" value="123" />
<input type="text" name="pers_key" value="ABC" />
</cfoutput>
</form>
My receiving page
Code:
<%
pers_key = request("pers_key")
pin = escape(request("pin"))
response.write("pers_key: " & pers_key & "<br>")
response.write("pin: " & pin)
%>
On the receiving page, I get this:
[tt]
pers_key:
pin:
[/tt]
If I change from POST to GET, the receiving page displays the variables:
Code:
<form name="sso_logon" method="get" action="[URL unfurl="true"]http://somepage.asp">[/URL]
<cfoutput query="get_key">
<input type="text" name="personid" value="123" />
<input type="text" name="pers_key" value="ABC" />
</cfoutput>
</form>
So, from the GET method, the receiving page displays this:
On the receiving page, I get this:
[tt]
pers_key: 123
pin: ABC
[/tt]
I do not want to have form variables visible, hence my desire to POST the variables.
I tried using Request.Form(), but that had no effect - variables only appeared when using the GET method. I've stopped by 4Guys, and took several strolls through Google. So far, no joy.
Am I missing something???
Assistance would be GREATLY appreciated!