frmhello.asp

Page source

<HTML> <HEAD> <TITLE>interaction with form -- response</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> Hello Larry, my friend. </BODY> </HTML>

Script listing

<HTML> <HEAD> <TITLE>interaction with form -- response</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <% dim strName 'the name the user entered on the form strName = request.form ("txtName") response.write ("Hello " & strName & ", my friend.") %> </BODY> </HTML>

Explanation

This script is called by frmhello.htm. It uses the form method of the request object to read the name the user entered in the form. That is sent back to the user in a simple HTML page using the write method of the response object.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.