Customer Support Center


Using Webform.cgi

Contents of this Page

Introduction
The Steps
With Secure Server

Us Setting up a Form for You

Introduction

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.

The Steps

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 midairdesign with the following
account info:

Homepage name: index.html

Name of page with the form on it: xyz.html

Name of the thank-you page: thanks.html

Email address:  abcdefg@xyz.com

First, we will need to make a link to "xyz.html" from the homepage, "index.html". The link will need to use this piece of HTML code, inserted into the file, "index.html":

<A HREF="http://YOURDOMAIN.NAME/xyz.html">Link to form page.</A>

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.html".    We will insert this code:

<form method="post" action="http://YOURDOMAIN.NAME/cgi-bin/webform.cgi">
<input type="hidden" name="recipient" value="abcdefg@xyz.com">
<input type="hidden" name="redirect" value="http://YOURDOMAIN.NAME/thanks.html">
<input type="hidden" name="subject" value="Form Submission">

Of course, we may we may replace "Form Submission" with some other subject.

With Secure Server

For Secured Server on UNIX the path would be:

<form method="post" action="https://wwwXXXX.midairdesign.com/cgi-bin/webform.cgi">
<input type="hidden" name="recipient" value=" abcdefg@xyz.com">
<input type="hidden" name="redirect" value="https://wwwXXXX.midairdesign.com/yourdirectory/thanks.html">
<input type="hidden" name="subject" value="Form Submission">

where XXXX should be substituted with the number of your server.

Us Setting up a Form for You

MidAir Design can setup a form for you for a one-time $35 fee. Each form would entail such a one-time fee. You would need to specify:

Please note that our work would entail the basic structure of the form itself rather than the aesthetic design of the page. The customer would be responsible for the aesthetics, after the form is setup. We will, of course, give the form an organized design.

If you are interested in this service, please contact our Sales Office


Copyright © 1999 - 2001 MidAir Design, Inc. All rights reserved.