News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Request object in Asp

Started by thiruvasagamani, Aug 19, 2008, 03:16 PM

Previous topic - Next topic

thiruvasagamani

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>
Thiruvasakamani Karnan