CGI Scripting

Using the appendto Script
Putting It All Together

If you followed the instructions very carefully, you should have two files at this point, one called form.html and the other called thankyou.html.

Getting Your Form to Your Web Site
Using Your FTP Program

  1. If you are not online, connect to the Internet and then start your FTP program.
  2. Connect to your Web site using your FTP program.
  3. Upload the files form.html and thankyou.html in ASCII (or Text) mode into your webdocs directory (folder). Do NOT upload the file formresults.txt because the script will create this automatically.
  4. If you don't see a directory (folder) inside your webdocs folder called data, please contact EarthLink's Web Support Department by sending email to: webmaster@earthlink.net. Ask that a world-writable directory called data be created on your Web site.
  5. Close your FTP program.
  6. See Testing and Retrieving Your Results.

Getting Your Form to Your Web Site
Using Your Web Authoring Program

Because these programs are popular, we present a general outline of the process. You will need to consult the Help menu of your own program if you have difficulty following this procedure. We are sure you will understand EarthLink is not in a position to support software which we do not distribute.

  1. If you are not online, connect to the Internet and then start your Web Authoring program.
  2. Open the form.html page.
  3. Select the Publish command (usually on the File menu or the Toolbar). If you have not published before, you will need to set the Publishing options.
  4. After publishing form.html you may Close it. Repeat the steps to Publish thankyou.html also. Do NOT Publish the file formresults.txt because the script will create this automatically.
  5. Close your Web Authoring program.
  6. See Testing and Retrieving Your Results.

Testing and Retrieving Your Results

  1. Start your browser and enter the URL for the form (http://home.earthlink.net/~username/form.html replacing username with your EarthLink username). You should see the sample form.
  2. Fill out the form and then click the Submit button. You should see the thank you page. This assumes that a world-writable directory called data exists on your Web site already.
  3. Enter the URL for the form results file (http://home.earthlink.net/~username/data/formresults.txt into your browser replacing username with your EarthLink username and formresults.txt with the name for the results file). You should see the data that you entered in the form.
  4. Now that you have the sample form working, modify it to your liking on your local computer and then upload again. Do the same for the confirmation (thank you) page.

Other Related Pages

Forms Menu
Appendto Script Basics
Sample Form Page
Sample Confirmation Page
Upload Form Using FTP
Upload Form Using Publish
Testing and Retrieving Your Results
Frequently Asked Questions



Member Web Support Main Menu