The Request object is used to get information from the client. It is also used to obtain server variables.


 


This code shows how to submit a form using the Get method.










<html>


<head>


<title>


</title>


</head>


<body>


<form action="request.asp" method="get">
How old are you?:
<input type="text" name="age">


<br>
<input type="submit" value="Submit Age">
</form>


</body>


</html>




 


This code shows how to retrieve the values.


 










<html>


<head>


<title>


</title>


</head>


<body>


Hi,you must be about


<%=Request.QueryString("age")%>


years old!


</body>


</html>




 


This code shows how to submit a form using the Post method.










<html>


<head>


<title>


</title>


</head>


<body>


<form action="request.asp" method="post">
How old are you?:
<input type="text" name="age">


<br>
<input type="submit" value="Submit Age">
</form>


</body>


</html>




 


This code shows how to retrieve the values.


 










<html>


<head>


<title>


</title>


</head>


<body>


Hi,you must be about


<%=Request.Form("age")%>


years old!


</body>


</html>







 
                    

Copyright © 2010 VisualBuilder. All rights reserved