I tried: I can only show page2 content (without style because page2
is on another server) but I still remain in page1 (see addreess bar)
and I'm not redirected to page2 while posting data.
Please could you help me again?
This is my code:
<%
strPostURL =
"
http://ecommerce.plusvalore.it:7081/CaricamentoCO/Login/loginTarida.jsp"
strPost =
"fasePagina=check&Lgn_operatore=USERNAME&Lgn_password=PASSWORD&MM_action=true"
set objPost = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
objPost.Open "POST", strPostURL, False
objPost.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded" objPost.send strPost
strTheResponse = objPost.responseText
Response.write strTheResponse
%>
I'd like to have somethig similar to this (done with javacript see
below), but server side because I dont want to send password to client
again.
<form name="form1" method="post" target="_blank"
action="
http://ecommerce.plusvalore.it:7081/CaricamentoCO/Login/loginTarida.jsp">
<input name="fasePagina" type="hidden" value="check">
<input type="hidden" id="Lgn_operatore" name="Lgn_operatore"
value="USERNAME">
<input type="hidden" id="Lgn_password" name="Lgn_password"
value="PASSWORD">
<input type="hidden" id="MM_action" name="MM_action" value="true">
</form>
<script>
document.form1.submit();
</script>