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> ...

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.