O'Reilly logo

ASP in a Nutshell, 2nd Edition by A. Keyton Weissinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ProcessForm — objTools.ProcessForm (strOutputURL, strTemplateURL, [strInsertionPoint])

Synopsis

The ProcessForm method of the Tools component allows you to generate a file on your server in response to data entered by a client through an HTML form. The format of the output file is retrieved at runtime by using a template file. The name of the template file and the name of the new output file are provided in the call to the method.

Parameters

strOutputURL

The relative URL of the file to which ProcessForm will write its resulting text after processing an HTML form using the template specified in the strTemplateURL argument.

strTemplateURL

The relative URL of the file ProcessForm will use to create the output file. This file contains the script for processing the HTML form contents.

strInsertionPoint

Optional. The insertion point within the file specified by the strOutputURL argument where the ProcessForm will insert the results of its processing. This argument has not been implemented in the most recent edition of the Tools component and will be ignored if supplied.

Example

****** BEGIN INITIAL CLIENT FORM ******* <HTML> <HEAD><TITLE>Form to Process</TITLE></HEAD> <BODY> <H1>ProServices Employee Suggestion Box</H1> <FORM ACTION="ProcessForm.asp" METHOD="POST"> Suggestion Category: <SELECT NAME="lstCategory"> <OPTION SELECTED VALUE="all">General <OPTION VALUE="projmgmt">Project Mgmt </SELECT><BR> First Name: <INPUT TYPE="TEXT" NAME="txtFName"><BR> Last Name: <INPUT TYPE="TEXT" NAME="txtLName"><BR> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required