Hello all,
I want to use the POST method to submit the form and then grab the
parameters in the asp file with request.form("parm").
The problem is that I am using the _search target to open the asp
page.
When I use _blank target there is no problem, either I use GET or POST
method.
But when I use _search target, only GET method works.
I really need to use POST method cause I'm passing lot of data in the
parameters.
Thanks a lot in advance for any suggestion, solution, reasons why this
doesn't work or a workaround.
Rui
***********************************************
***************FILE a.htm**********************
***********************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<form name="frmGo" action="b.asp" method="post" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="hidden" name="parmHidden" value="olaParmHidden">
</form>
<a href='javascript:frmGo.submit()'>Go (POST)... </a>
<form name="frmGo1" action="b.asp" method="get" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="hidden" name="parmHidden" value="olaParmHidden">
</form>
<a href='javascript:frmGo1.submit()'>Go (GET)... </a>
</body>
</html>
***********************************************
***************FILE b.asp**********************
***********************************************
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
POST<br>
parm:<input type="text" name="parm" value="<%= request.form("parm")
%>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.form("parmHidden") %>"> <br>
GET<br>
parm:<input type="text" name="parm" value="<%=
request.QueryString("parm") %>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.QueryString("parmHidden") %>"> <br>
</body>
</html>