Learn about Basic ASP Forms and Inputs by User (9.1 ASP):
In HTML form we can use Request object to retrieve information from different forms. Following is the example of HTML form:
Example of HTML form:
<form method = “get” action = “formex.asp”>
Nameone: < input type = “text” name “myname”/>
<br/>
Nametwo: < input type = “text” name “mynames”/>
<br/>
<input type = “submit” value = “submit”/>
</form>
There are two commands which are used to retrieve user input from forms. These commands are: Request.QuerryString and Request.Form
Request.QueryString:
The Request.QueryString is the command which is used for the retrieval of values in a form by using “get” method. The information which is sent by a form using get method is available to everyone. This information also has limits on its amount. The difference is that if the user would have typed “you” and “angel” in the HTML form then the URL sent to the asp server would be:
http://www.website-school.com/formex.asp?myname=you&mynames=angel
But if the formex.asp contains asp source code script:
<body>
Hey
<%
Respone.write(request.querystring(“myname”))
Respone.write( “ “ &request.querystring(“mynames”))
%>
</body>
As a result the output would be:
Hey you angel
Example of a Form by using Request.QueryString and “get” as a method:
<html>
<body>
<form action=”form_requeryz.asp” method = “get”>
Name: <input type = “text” name = “myname” sixe = “12”/>
<input type = “submit” value = “submit”/>
</form>
<%
Dim myname
Frame=Request.QueryString(“myname”)
If myname<>””Then
Response.Write(“Hello” & myname & “/<br/>”)
Response.Write(“Whats up dude”)
End if
%>
</body>
</html>
Request.From:
It is a command which is used to get values in a form by using “post” method. The information which is sent by a form using get method is not available to everyone. This information also has no limits on its amount. The difference is that if the user would have typed “you” and “angel” in the HTML form then the URL sent to the asp server would be:
http://www.website-school.com/formex.asp
But if the file has asp scripts:
<body>
Hey
<%
Respone.write(request.form(“myname”))
Respone.write( “ “ &request.form(“mynames”))
%>
</body>
The internet browser will display:
Hey you angel











I and my pals were actually taking note of the best information and facts found on the blog and all of the sudden I got a terrible feeling I had not thanked you for those secrets. Most of the boys were for that reason very interested to study them and have in effect honestly been taking advantage of them. Appreciation for getting so kind and also for having varieties of superb subject areas most people are really wanting to learn about. My honest regret for not expressing appreciation to you earlier.
You may have without a doubt made some supreme factors here. I particularly appreciate the style you’ve got been in a position to stick a lot thought into a relatively quick put up (comparitively) which makes it an thoughtful put up for your discipline. IMHO you place plenty of great info on this put up with out all the filler that almost all bloggers use simply to make their posts seem longer, that is ultimate for a gal like me who does not have rather a lot time purpose I’m often inside the go. I usually get so frustrated with so plenty of from the outcomes inside the principal SE’s since they generally appear to largely be filled with filler content that normally will not be quite good. When you do not thoughts I’ll add this publish and your weblog to my delightful favorites so I will share it with my family. I’ll be back, chances are you’ll ensure that of that so keep up the good blogging.