I am trying to pass a parameter from a HTML page to an ASP page, but it doesn't work. Here is my HTML page :
<html>
<head/>
<body>
<FORM name="frmPost" action="test2.asp?user=<%=user%>" method="post">
<input type="text" name="user">
<input type="submit" value="Submit">
</form>
</body>
</html>
And my ASP page :
<html>
<head>
<title>Call UK Messenger</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<BODY>
<DIV>
Parameter passed :<BR><BR>
<TABLE BORDER=1>
<TR>
<TD><% Response.Write Request.QueryString("user") %></TD>
</TR>
</TABLE><BR><BR>
</DIV>
</body>
</html>
Can somebody please advise?
<html>
<head/>
<body>
<FORM name="frmPost" action="test2.asp?user=<%=user%>" method="post">
<input type="text" name="user">
<input type="submit" value="Submit">
</form>
</body>
</html>
And my ASP page :
<html>
<head>
<title>Call UK Messenger</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<BODY>
<DIV>
Parameter passed :<BR><BR>
<TABLE BORDER=1>
<TR>
<TD><% Response.Write Request.QueryString("user") %></TD>
</TR>
</TABLE><BR><BR>
</DIV>
</body>
</html>
Can somebody please advise?