Internet Montana

...your quality low cost provider

MY IMT ABOUT IMT SERVICES SUPPORT MY EMAIL

Technical Support > All About the Internet

Publishing a Web Page

Writing a Web Page | Accessibility | Counters & Forms | Using Secure Web Pages
FTP (File Transfer Protocol) | Getting a Domain Name | Getting Listed in Searches

Using Forms

Because our server is Unix based, it does not allow Microsfot FrontPage extensions. However, most web pages designed in FrontPage will work just fine without FrontPage extensions enabled on the server. The only pages that may be aaffected are web-based forms, such as a comment form, or a page counter. Following are instructions for using scripts already on the Internet Montana server that allow these forms.

Adding a Page Counter

Enter a line like the following to your HTML file:
This page has <!--#exec cgi="/cgi-bin/counter.pl"-->

and it will look like this:
This page has 3246 accesses.

Your Basic Fill-it-in Form

To review an example of a guest book form as described in the following steps: Sample Guest Book Form.

    Create your HTML document.

  • The form method line should look like:
    <form method="POST" ACTION="http://www.imt.net/cgi-bin/formmail.pl"">
    (For more information on the cgi script and how to use it, visit: Formail)
  • Define your variables (the information requested in your form) within your html document.

  • Some fields can be pre-defined, such as the "to" line of the email (who the form is emailed to), and the subject line. The code should look something like this:
    <input type=hidden name="recipient" value="support@imt.net">
    <input type=hidden name="subject" value="guest.html">
    (where "support@imt.net" may be any email address of your choice, and the "guest.html" would be any decription you wish for the subject field of the email you will recieve as a result of this form being filled out.)


  • For the "From" field, i.e. the email of the person filling out the form, try the following lines:
    <input type=text name="email">
    <input type=hidden name="required" value="email">


  • For the information fields in the form, use tags to define the name and the field length for each. Try the following lines:
    <p>Name: <input name=Name size=50><br>
    Company: <input name=Company size=50><br>
    Address: <input name=Street size=50><br>
    City: <input name=City size=30><br>
    State: <input name=State size=12><br>
    Zipcode: <input name=Zip size=10><br>
    Country: <input name=Country s ize=30><br>
    Phone: <input name=Phone size=16><br>
    Email: <input name=email size=25><br>

Also check out our tips on using Using Secure Web Pages

MY BILLING RATES DOWNLOADS CONTACT US MY FILTERS

Material last updated February 2008

Copyright 1995, Internet Montana, All rights reserved