ASP Multiple choices

Total available count: 25
Subject - Web Development
Subsubject - ASP

How do you get information from a form that is submitted using the "get" method?







In ASP, The Request.QueryString command is used to collect values in a form with method="get".

Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser's address bar of the browser) and has limits on the amount of information to send.

Example HTML form

<form method="get" action="slightadminform.asp">
Admin Name: <input type="text" name="aname"><br>
Admin Type: <input type="text" name="atype"><br><br>
<input type="submit" value="Submit">

If a user typed "Slightbook" and "Main Admin" in the HTML form above, the URL sent to the server would look like this: Admin

Assume that "slightadminform.asp" contains the following ASP script:

response.write(" " & request.querystring("aname"))

The browser will display the following output in the body of the document:

The Slightbook Main Admin