Reputation: 61
I have my 1 form as follows
<form action="ForPT.asp" target="_top" method="post" id="frm1" name="frm1">
<input type="hidden" id="cname" name="cname" value="<%=cname%>"/ >
<input type="hidden" id="HDate" name="HDate" value="<%=ReqStartDate%>" />
<input type="hidden" id="Log" name="Log" value="<%=EventLogID%>"/>
</form>
I am trying to get the above 3 values in the ForPT.asp form using Request.Form.But it no way works. The ForPT.asp is as follows.
<%@ language="vbscript"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<%
dim log, sdate, cname
log = Request.Form("Log")
sdate = request.Form("HDate")
cname=request.Form("cname")
%></body>
I have used Request.Form in few other pages and it is working fine.Please help.
Upvotes: 1
Views: 6410
Reputation: 11
I had the same problem. I can't explain why, but it should work with:
Request.QueryString("parameter name")
Upvotes: 1
Reputation: 822
here is one of the possible problem:
<input type="hidden" id="cname" name="cname" value="<%=cname%>"/ >
it should be:
<input type="hidden" id="cname" name="cname" value="<%=cname%>"/>
Upvotes: 0