In Classic ASP, Submitting values from one page are not being able to fetch from Request.Form on another page in Windows 2008 Server 64 Bit, It gives HTTP 500 error. However I am able to view normal Response.Write quoted text in my browser. I am new to ASP Classic.
Index Page :: This is the index page whose values are to be traversed to another page.
<HTML>
<HEAD>
</HEAD>
<BODY>
<Form Method="POST" Action="ValidateUser.asp" Name="IndexPage" Id="IndexPage" target="ValidateUser">
<CENTER><H1><%Response.Write ("Welcome to PuneDiary..")%></H1>
<BR>
<BR>
<table>
<tr>
<td colspan="2" align="center">Login</td>
</tr>
<tr>
<td>User Name : </td><td><input type="text" name="txtuname" value="<%=txtuname%>"/></td>
</tr>
<tr>
<td>Password : </td><td><input type="password" name="txtpass" value="<%=txtpass%>"/></td>
</tr>
<tr>
<td></td>
<td align="Right">
<input type="Submit" Value="Submit"/>
</td>
</tr>
</table>
</CENTER>
</Form>
</BODY>
</HTML>
--------------------------------------------------------------------
Validate User Page :: This is the page which takes input from the Index Page.
ValidateUser.asp
<!DOCTYPE html>
<HTML>
<HEAD>
<script language="vbscript" runat="server"/>
</HEAD>
<BODY>
The Data to be displayed is:<BR>
<%
Call ValidateUser()
Public Sub ValidateUser()
Dim Uname,Pass
UName = Request.Form("txtuname")
Pass = Request.Form("txtpass")
Response.Write (UName & "<BR>")
Response.Write (Pass)
End Sub
%>
</BODY>
</HTML>