Request.Form






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 to others and has no limits on the amount of information to send.

Example HTML form
<form method="post" action="simpleform.asp">
First Name: <input type="text" name="fname"><br>
Last Name: <input type="text" name="lname"><br><br>
<input type="submit" value="Submit">
</form>


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

http://www.w3schools.com/simpleform.asp

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

<body>
Welcome
<%
response.write(request.form("fname"))
response.write(" " & request.form("lname"))
%>
</body>
The browser will display the following in the body of the document:

Welcome Bill Gates













( requestform.html )- by Paolo Puglisi - Modifica del 17/12/2023