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 "post" method?


 

 

 

 



A


Solution:-

Request.Form
The Request.Form command is used to collect values in a form with method="post".

Information sent from a form with the POST method is invisible or unable to be seen to others and has no limits on the amount of information to send.

Example HTML form

<form method="post" action="adminform.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:

https://www.example.com/adminform.asp

Assume that the following ASP script contains by the "adminform.asp" page:

<body>
The
<% response.write(request.form("aname")) %>
is the
<% response.write(" " & request.form("atype")) %>
</body>

The following is the body of the document that will be displayed by the browser:

The Slightbook is the Main Admin




Next 5 multiple choice(s)

1

How can you script your ASP code in JavaScript?

2

What is the default scripting language in ASP?

3

<%= is the same as:

4

How do you write "Hello World" in ASP

5

ASP server scripts are surrounded by delimiters, which?

Comments