ASP Forms and User Input

Submitted by:Pitter Alderson

Date added:06 February, 2012


ASP Forms and User Input from HTML form

Tags: asp forms

Code Snippet:

# Request object can be used to retrieve user information from HTML form as below

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

# Assume that "form_samle.asp" contains the following ASP code:

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