ASP Forms and User Input

Submitted by:Pitter Alderson

Date added:06 February, 2012

Category:ASP

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" />
</form>


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

<body>
<%
response.write(request.querystring("fname"))
response.write(" " & request.querystring("lname"))
%>
</body>
 
 

Comments