home *** CD-ROM | disk | FTP | other *** search
- HOW TO BUILD A FIRST VIRTUAL-ENABLED MEMBERSHIP FORM
-
- This package is intended to make it very easy to install a
- First-Virtual-enabled web page for selling memberships to an
- organization or for collecting donations.
-
- PREREQUISITES: To use this package, you must know how to browse a web
- page given its URL, how to install an executable file in such a way
- that browsing a URL causes it to be invoked via CGI, and you must have
- access to a C compiler and a MAKE program and several UNIX utilities
- for the configuration process. You must also have a First Virtual
- seller's PIN and an email address. Your Internet Service Provider
- can help you with problems in this area. HELPFUL: Knowledge of how to
- write HTML, understanding of C and the compilation process, a
- MIME-capable email client, and for high-volume sellers, understanding
- of the First Virtual protocols sufficient to allow automation of the
- matching of various email messages for accounting purposes.
-
- To install this package, you will need a HTTPD server that supports CGI.
- This package creates an executable from the HTML files you edit here
- and allows you to install it where you'd like.
-
- Once installed, users will be able to browse the script and get back a
- form to be filled in. Submitting the form will cause its contents (in
- nicely readable and machine-parsable format) to be mailed to an email
- address of your choice. In addition, if they fill in their First
- Virtual Buyer's PIN (and optionally check off a price, if there is more
- than one), a charge will be placed to their PIN and you will
- receive a copy of the transfer-request and eventually the
- transfer-result.
-
- On most systems, all you should have to do is type "make". You will
- be asked about ten questions, and then the script will build a program
- ("member") for you. If you install the member program in your cgi-bin
- directory (or basically anywhere that your server will execute it),
- the web page will be all set to process your membership applications!
- It will also be fairly easy to edit the embedded HTML files if you
- need to make any textual changes.
-
- One of the options is the price to be charged. You may select either a
- single flat amount or a one-of-many list. For example, you may have
- different prices for students, professionals, and corporations. If
- there is only one price, a bill will be submitted to First Virtual
- only if the user fills in a valid First Virtual PIN. If
- multiple prices are available, the user also has to choose one. You
- can set the default price as well.
-
- If you do feel the need to fine-tune the web pages, be careful not to
- break things by inadvertently altering the content-type line, the
- blank line after it, or otherwise altering the structural parts of the
- web form. Also, do not change the names of the fields "FVPIN" or
- "price". After changing the web forms, simply run "make" again to
- incorporate your changes into the code, then copy the executable back
- into your cgi-bin directory. (During the "make", the HTML files are
- encoded into the body of the program as string constants.) DO NOT
- CHANGE "ACTIONPROG" IN THE HTML FILES. It's supposed to be there, and
- is dynamically changed to point to wherever you install the member
- executable if your web server is properly configured.
-
- If you need to add new fields to the things returned by the form, you
- need only edit membership.html (after the first time you build) and
- run "make" again. The program will automatically pick up any fields
- whose names start with "QS_" and include them in email to you. There
- is also an option to add fields during the initial configuration.
-
- In addition to the QS_ fields, the program will also include in the
- email the transfer-ID (which will allow you to correlate the form data
- with the payments) and the URL used to access the script (in case you
- have more than one form going to the same email address).
-
- CHANGING THINGS AFTER IT IS RUNNING:
-
- All you need to do is edit the *.html files, then run make again, then
- copy the member program to the appropriate place. If you wish to
- change where the email goes, how much it costs, and so on, simply edit
- config.h (not config.x and not fields.h), run make, and copy the
- executable.
-
-
- DETAILS OF INSTALLATION:
-
- Unpack the tar file into an empty directory. Run "make". Answer any
- questions it asks, and fix makefile options and such as appropriate to
- your system. Copy the "member" executable into your cgi-bin directory,
- then point your browser at the URL. You should get a reasonable
- form. Filling out the form should cause you to get email at the
- address you gave during the initial "make".
-
- To modify what the forms look like, go back to your "member"
- directory, edit one or more of the .html files there. Be sure not to
- change the headers or other structural information. Additional fields
- whose NAME= starts with QS_ will be included in the email generated by
- the "member" program without any additional effort on your part beyond
- adding them to the HTML.
-
- NOTE: First, the HTML files are included in the member executable as
- static strings. Once "member" is built, the executable program is all
- you need. If you point your browser at the HTML files themselves, it
- won't work. If you run "member" from the command line, it won't
- work. You must invoke "member" via CGI for it to work.
-
- NOTE: Do not change the ACTIONPROG string in the form. The member
- program uses this to fill in its own URL whenever it is run. (That's
- why you can't call it from the command line.)
-
- Questions should be directed to support@fv.com. Thank you!
-
-
- -- Darren New
- Director of Custom Software Design
- First Virtual Holdings Inc
- dnew@fv.com
- -- Thanks to Nathaniel Borenstein for most of the "configure" program
-
-
- Copyright (c) 1994,1996 FIRST VIRTUAL HOLDINGS INCORPORATED
- FIRST VIRTUAL (TM) and the FIRST VIRTUAL logo are service marks
- of First Virtual Holdings Incorporated.
-
- Permission to use, copy, modify, and distribute this material
- for any purpose and without fee is hereby granted, provided
- that the above copyright notice and this permission notice
- appear in all copies, and that the name of First Virtual not be
- used in advertising or publicity pertaining to this
- material without the specific, prior written permission
- of First Virtual Holdings Incorporated. FIRST VIRTUAL
- MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
- OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS",
- WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
-