home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-24 | 4.2 KB | 110 lines | [TEXT/ttxt] |
- flexmail.acgi works with MacHTTP. It handles form responses sent from a
- browser, returning a thank-you to the sender and mailing the formatted
- information. Who receives the info is easily set by editing some text .
-
- The form is an html file. For example:
- ---------------------------------------------------------------
- <title>Fun Form</title>
- <h1>Have fun filling out the form:</h1>
-
- <form action=flexM.68k.acgi method=post>
- Your name:
- <input type=text name="name" value=" Enter your name here " size=50><P>
-
- Your favorite city:
- <input type=text name="city" value=" Your favorite city " size=50><P>
-
- A color:
- <input type=text name="color" value=" crimson " size=50><P>
-
- A different color:
- <input type=text name="difcolor" value=" auburn " size=50><P>
-
- <input type=reset value="Start Over"><input type=submit value="All Done!">
- </form>
- </html>
- ------------------------------------------------------------------
- The responses are sorted by name. The name is a key to picking out the
- information you want. A template can be composed so that responses can in
- inserted as desired.
-
- The second file needed is a .flx file. An optional <input type="hidden"
- name="flexConfig" value="myConfig.flx"> allows you to choose among
- multiple files. The default name of the file, if one does not use the
- "flexConfig" key, must be: flexform.flx. (Otherwise, the program won't find
- it.) The reserved use of "flexConfig" is to tell the program which .flx file
- to read.
-
- Continuing with this example:
- ------------------------------------------------------------------
- *Mail you@some.dom
- To: you@some.dom
- From: Gandalf <you@some.dom>
- Subject: The next step? ....
-
- From %city%, MacroSlush plan to inject their Ebola Operating System into
- poor %name%'s pathetic computer. Soon afterwards the %color% and
- %difcolor% logo of MacroSlush will desecrate terminals throughout the
- World Wide Web!
-
- *Response
- Content-type: text/html
-
- <title>HA-HA-HA!!!</title>
-
- A natural surrealist has taken your innocent remarks and used them to
- <strong>Change Life!</strong><hr>
- ----------------------------------------------------------------
- OK, end of example, this is me again. A .flx file is two files in one. The
- part that comes after:
-
- *Response
- Content-type: text/html
-
- is your composed thank-you to the person who submitted form data. Please
- copy the "*Response..../html" EXACTLY as shown above. (Computers give no
- slack.)
-
- The leading part of the file, "*Mail you@sonic.net" is the address where the
- formatted responses will go. Take out that address and put in yours.
- Simple! The same with the next three lines, "To:, From:, Subject: ".
-
- Most people format thusly:
-
- Name: %name%
- City : %city%
- Color: %color%
- Diferent color: %difcolor%
-
- I was a little playful. Anyway, flexM will substitute those %key% patterns
- with the value associated with the key. Pretty slick. AND then mail it!
-
- flexmail.acgi is an easy, flexible, efficient way of gathering information
- from Web browsers.
-
- The default configuration for flexmail.acgi (and Mail Tools Gateway) is in
- the 'CNFG' id=128 resource and can be changed using ResEdit:
- Max # concurrent requests (threads): 10.
- Thread timeout: 1 minute.
- Idle time before auto quit: 0 (the gateway never quits).
- Logging level: 1 (stats logging).
- Memory partition: 1.2 megabytes.
-
- flexM.68k.acgi was created using John Norstad's Mail Tools Gateway on a
- Quadra 610 running System 7.1. C. Joe Holmes instigated this project. His
- PERL script, flexMail, is the elder brother of flexM.68k.acgi.
-
- Fine Print
-
- Robert Flannery and C. Joe Holmeshereby disclaim all warranties relating
- to this software, whether express or implied, including without limitation
- any implied warranties of merchantability or fitness for a particular
- purpose. Neither Robert Flannery nor C. Joe Holmes will not be liable for
- any special, incidental, consequential, indirect or similar damages due to
- loss of data or any other reason, even if Robert Flannery, C. Joe Holmes or
- an agent of theirs has been advised of the possibility of such damages. In
- no event shall Robert Flannery nor C. Joe Holmes be liable for any damages,
- regardless of the form of the claim. The person using the software bears
- all risk as to the quality and performance of the software.
-
-