web 2.0

ASP Request.QueryString() - Request Object

ASP Request.Form() - Request Object Gets the collection of HTTP query string variables from method GET.

ShotDev Focus:
- Gets a collection of form method GET.

Syntax


Request.QueryString(element)

Example

asp_request_querystring1.asp


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form action="asp_request_form2.asp" method="post" name="form1">
Name
<input name="txtName" type="text">
Site
<input name="txtSite" type="text">
<input name="btnSubmit" type="submit" value="Submit">
</form>
</body>
</html>

asp_request_querystring2.asp


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form action="asp_request_form2.asp" method="post"  name="form1">
Name
<input name="txtName" type="text">
Site
<input name="txtSite" type="text">
<input name="btnSubmit" type="submit" value="Submit">
</form>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_request_querystring1.asp

Screenshot

ASP & Request.QueryString()

ASP & Request.QueryString()

.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.