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"> </form>
If a user typed "Slightbook" and "Main Admin" in the HTML form above, the URL sent to the server would look like this:
Assume that "slightadminform.asp" contains the following ASP script:
<body> The <%? response.write(request.querystring("aname")) response.write(" " & request.querystring("aname")) %> </body>
The browser will display the following output in the body of the document:
The Slightbook Main Admin