web site hosting

A Text Area Entry field allows multiple lines of entry to be entered by the Web Surfer. Typical uses are to provide comments the Web surfer can enter. The data will be sent back to the CGI program as one field identified by the NAME parameter. The ROWS and COLS fields are fairly self-explanatory. Take a look at the modified Form source as shown below:

<p ALIGN=Center>
     <center>
          <h1>Example of Form with Text Area Field</h1>
     </center>
</p>
<form METHOD=POST ACTION="http://www.enetrics.com/cgi-bin/formmail.cgi">
     <p>Person's Name:
          <input TYPE="text" NAME="persons-name" SIZE="40" MAXLENGTH="40">
          <input TYPE="hidden" NAME="recipient" SIZE="40" MAXLENGTH="40">
     </p>
     <p>Password:
          <input TYPE="password" NAME="password" SIZE="10" MAXLENGTH="10">
     </p>
     <p>Please Place me on your mailing list:
          <input TYPE="checkbox" NAME="mailing-list" VALUE="Yes" checked>
     </p>

     <p>What Country do you Live in?
          <select NAME="Country">
               <option VALUE="USA">United States
               <option VALUE="CA">Canada
          </select>
    </p>
     <p>What Type of Computer do you have?
          <input TYPE="radio" NAME="Computer-Type" VALUE="Pentium" checked>Pentium
          <input TYPE="radio" NAME="Computer-Type" VALUE="486DX">486 DX
          <input TYPE="radio" NAME="Computer-Type" VALUE="486SX">486 SX
     </p>
     <p>Comments: <br>
         
<textarea NAME="comments" ROWS="10" COLS="70" wrap="virtual">
This is text that can be defaulted into the text area field
          </textarea>
     </p>
     <p>
          <input TYPE="submit" NAME="Request" VALUE="Submit This Form">
          <input TYPE="reset" NAME="Clear" VALUE="Clear Form and Start Over">
     </p>
</form>


Notice the "wrap" attribute defined in the <textarea> tag.  This attribute sets automatic word wrapping when text is entered into the text area field.  If you do not want word wrapping to occur, simply omit the "wrap" attribute.

Click here to view the modified form

Beginning/Ending Form Tags
Text Entry Fields
Text Area Fields
Checkboxes
Radio Buttons
Combo Boxes
Submit and Reset Buttons
E-Mail the Contents of your Form
Example Forms

Hosting  ::  Web Design  :: Server Administration  ::  Tech Support  ::  Contacts
Data Centers  ::  Tier I Global IP Network  ::  SLA/Contracts  ::  Search  ::  Account Login