Here's a page of useful macros you can add to Frontier's website macro environment.You can download the collection of macros from:
ftp://ftp.scripting.com/userland/macros.sit.hqx
formMacro
This macro turns a specially formatted outline into an HTML form. Install standardMacros.formMacro and scratchpad.sampleForm.
Here's how you call it:
{formMacro (@scratchpad.sampleForm)}
You can learn a lot by looking at the sample form.
- The macro traverses the outline and builds the HTML text for the form.
- The main head contains the URL for CGI script.
- Each subhead describes on of the form elements. Supported types are onelinetext, mailaddress, and textarea. Each objects have subheads which further describe the object.
- Lines that are commented are skipped. You can put comments on lines in the same way you do it with Frontier scripts, with the left-chevron, entered by pressing option-backslash.
This page was last built with Frontier on a Macintosh on Mon, Jul 29, 1996 at 11:41:06 AM. Thanks for checking it out! Dave |