Our webform.cgi tutorial shows how to setup an HTML form to send email upon the submission of the form data. The code calls the preinstalled script webform.cgi, which is in the "cgi-bin" directory of the server, once the web page visitor clicks on the "Submit" button. This program is a derivation of the formmail.cgi program available at Matt's Script Archive.
To modify an existing HTML form to work with webform.cgi, please follow the simple instructions below.
We will use the example of an account
with the following
account info:
Homepage name: index.htm
Name of page with the form on it: xyz.htm
Name of the thank-you page: thanks.htm
Email address: abcdefg@xyz.com
First, we will need to make a link to "xyz.htm" from the homepage, "index.htm". The link will need to use this piece of HTML code, inserted into the file, "index.htm":
We can of course substitute other words or an image for, "Link to form page."
Second, we need to insert some HTML code into the file, "xyz.htm".
We will insert this code:
Of course, we may we may replace "Form
Submission" with some other subject.
It is recommended that FrontPage users use a FrontPage-based form instead. The FrontPage Form FrontPage Components have much greater functionality. For more info, click on the word, "Help" on the menubar of FrontPage Editor. Then select "Microsoft FrontPage Help". Click on the "Index" tab. In the box, type "form". You will see a list of relevant topics.