The Print Action


The PRINT action causes the results of the current form to be stacked. The current content of the stack is then used as items to replace "variables" in a second HTML form, which Information Courier then prints. The PRINTC action performs the same function, but then clears the content of the stack once printing has taken place.

Specify this action as the ACTION parameter of the FORM tag. The HTML page to jump to after the E-Mail is complete may also be specified after a + sign. For example, to specify that you want to substitute variables in, and then print the prt.htm page when the user submits the form, then jump to the thanks.htm page, specify

FORM Method="get" Action=Print?prt.htm+thanks.htm

In the prt.htm page you should include comments that include the field name surrounded by the @ character. For example, assuming the form's field name was "Address" then the comment would need to be

<!--@Address@-->

In the case of form elements that can return multiple lines of data (multiple select fields and input boxes etc.) the replacement is multiple lines separated by carriage return/line feed pairs. To maintain these carriage returns you might want to be within the scope of a "preformatted" tag. Also consider using tables to help you lay out your printed document, you can get some very neat looking printed documents using tables.

As an example, try filling in the following form and press the "Order Catalog" button:-

Your Name:

Customer Number:

Your Address?