ASP Request Form - Exercise Result
Reading and writing HTML Form Data
Here is one way to write the ASP script, readform.asp
.
Submitting the HTML Form runs your ASP script, reads the text data, and writes it back to the browser:
<html>
<head>
<title>Module 3 - Exercise 5 Solution</title>
</head>
<body >
<div align="center">
<p><b><font size="+2">Module 3 - Exercise 5 Solution
</font></b></p>
<% Response.Write "Welcome " & Request.Form("txtName")
& "!" %>
<p> </p>
</div>
</results>
</html>
.
<form name="frmWelcome" method="post" action="readform.asp">
.
<input type="text" name="txtName" size="30">