> About
> Make Up Files
> Counter CGI
  > Counter Samples 1
  > Counter Samples 2
> Form CGI
  > Form CGI Sample
> Upload Files
> FAQ
 
WebPages

Form CGI
Check Kimberly's HTML Lessons

Introduction
- With Form CGI, you can create an input form which uses form tags <form>~</form>.
- When visitors to your home page input some message, it is e-mailed to you. Upon completion of the transmission, visitors who have input some message will see a message on the screen which says something like "your mail has been successfully transmitted".

--> Sample page

- Form CGI is only available on our user home page service site.
- Files names and types of contents are to be defined by you. The type of information that visitors to your site will enter is also defined by you.
The following 2 files will be required.

  Files
 1. Input screen using form tag <form> ~ </form>.
 2. Successful mail transmission completion screen.
e.g.: A screen which says "Your has been successfully transmitted"

Mail transmitted to you
The types of content of mail sent to you will be as follows.

It is fixed to your mail address. (From:)
It is fixed to your mail address.
If you wish to return a message to a sender, you need to ask for his/her mail address. (Even if you ask for it, a sender might not necessarily enter this information.)

Destination's mail address: (To:)
It is fixed as the mail address of the owner of the home page (mail address of a user who has signed up for the User Home Page Service.)

Subject: (Subject:)
A string of characters specified in the input screen.
If none is entered, it will automatically be "From Web Visitor".

Mail message:
The two input items as specified by you can be used:
Item 1 = message input by your web visitor
Item 2 = message input by your web visitor

HTML description required for the input screen
Please add the following description(attributes of the form tags) where you wish to place an input form.
What is given in italics should be specified by you depending on your environment.

<!-- ---------------- -->
<form action="/cgi-bin/form/getmail.pl" method="post">
<input type="hidden" name="reply" value="/Transmission Completion Screen File Name">
<input type="hidden" name="subject" value="Mail subject">

Message1 <input type="text" name="Item1"><br>
Message2 <input type="text" name="Item2"><br>

<input type="submit" value="Submit">
</form>
<!-- ---------------- -->

Explanation of Items to be Specified:
Transmission Completion Screen File Name(cannot be omitted)
The file name of the transmission completion screen file to be displayed on the visitor's browser software is specified here. Only a file that resides in your home directory can be specified. The name should start with "/" without the home directory name. If the file is in a subdirectory(subdir), you have to add the name of the subdirectory.
Example: value="/reply.html" or value="/subdir/reply.html"
Mail subject (may be omitted)
The subject of the message sent to you is specified here.
When more than one form is used, by changing the values you can tell which form the message was sent from.
Example: value="Visitor's Voice"
When omitted, it will be set as "From Web Visitor".
Message and Item name (one or more lines)
The type of information that a web visitor inputs is specified here.
Put more lines here depending on the number of items you wish your visitor to input.
The message will be used as a caption displayed anywhere you wish around the input frame.
The item name is included in the message returned to you.
Transmission(may be omitted)
A button to transmit the message is displayed.
When the web visitor clicks this button, the entered message is transmitted to you.
If omitted, the name of the button displayed will depend on the visitor's browser.

HTML description required in transmission completion screen
The transmission completion screen may be created in any way you wish. There are no special items you need to include.
In addition to such messages as "Thank you", we recommend that you include a hyperlink to go back to the page before the message entry form for your visitors' convenience.
If you have the description below, the transmission completion screen is displayed for a fixed period (seconds) and control is transferred to the next page< (the next URL).
In this case, omit structure tags such as <html>.

** next URL should be a complete one that begins with "http:"
example: http://www.spinnet.jp/index.html

<!-- --------file start-------- -->
<meta http-equiv="refresh" content="seconds ; url=next URL">
<title>Thank You.</title>
<p>
<h3>
Thank you!<br>
</h3>
<!-- --------file end------- -->