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 "template" HTML form, which is then printed. The PRINTC action performs the same function, but then clears the content of the stack once printing has taken place.
You can also add a target frame name to the redirection page if you are using Frames by enclosing the frame name in brackets at the end, so if for example you wanted the redirection page to appear in a frame called "main" you would need to specify
FORM Method="POST" Action=PRINTfirstname.lastname@example.org+thanks.htm(main)
It is also possible to generate and print "repeating lines". Imagine a Shopping Cart application, where the user can travel around the presentation, selecting multiple items, which you want to print in a list. To achieve this you need to give all the items the same variable name. You then need to include in your template page two comments that surround the HTML that needs to be repeated the number of times the variable appears in the stack. Define the start of the repeating HTML using a <!--@WCREPEAT@--> comment, and define the end of the repeating HTML with a <!--@WCREPEND@--> comment. WebCompiler will determine the variable(s) that appear in the repeating HTML, and will repeat the HTML, replacing the variable each time with the next value of that variable on the stack, until all the items for that variable have been used. There can be multiple variables with the repeating HTML, and WebCompiler will keep repeating while at least one of those variables has further values. There can also be multiple repeating sections, each enclosed within <!--@WCREPEAT@--> and <!--@WCREPEND@--> comments. You cannot nest these repeating comment markers however. A useful technique is to encase a table row definition inside the repeating markers - the table then grows to the number of rows required to accommodate all the variable values.
This is quite complex to grasp. If you need an example, take a look at our "Shopping Cart" example at our Web site at http://www.webcompiler.com and download the source HTML we used to create it.
No links are needed to the "template" HTML page. In fact you probably don't really want any way for the user to access the template form directly.
Note for FrontPage 98 users. Getting the HTML comment in correctly without FrontPage adding things you don't want can be quite tricky. You need to use the Insert menu, then select the FrontPage Component option. Then select the Insert HTML option (not the Comment option, it puts extra fluff around it that will prevent it from working). In the resultant box you need to type the comment as shown above, including the leading and trailing < and >. The other alternative is to edit the HTML directly and put it in that way.