HOME            MAIN            NEXT            PREV

HTML Form Summary


HOME            MAIN            NEXT

FORM Element: Fill-in Form

Usage:                <FORM>...</FORM>
Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, SCRIPT, [ISINDEX], INPUT, SELECT, TEXTAREA,
                           DIR, DL, MENU, OL, UL, P, HR, Hn,
                           ADDRESS, BLOCKQUOTE, CENTER, DIV, PRE, TABLE

Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, LI, TD, TH
Attributes:           ACTION, ENCTYPE, METHOD, TARGET
FORM encompasses the content of an HTML fill-in form. This is the element you use to create fill-in forms containing checkboxes, radio buttons, text input windows, and buttons. Data from a FORM must be sent to server-side gateway programs for processing, since a FORM collects data, but does not process it. HTML supports interactive forms via the FORM element and the special elements INPUT, SELECT, OPTION, and TEXTAREA--these four elements define a form's user input
TOP

<FORM ACTION="">
Data entered into a FORM is sent to a program on the server for processing. If you see a button at
the end of this sentence then your browser supports the HTML FORM element.
--[
<INPUTT TYPE="checkbox" NAME="button" VALUE="on">]--. If you do not see a button between the
square brackets go to the
<A HREF="Form.htm"> text-only interface </A>
</FORM>

Data entered into a FORM is sent to a program on the server for processing. If you see a button at the end of this sentence then your browser supports the HTML FORM element. --[]--. If you do not see a button between the square brackets go to the text-only interface


TOP

<FORM ACTION="http://side.edu/cgi-bin/send-note">
    <P>
<STRONG> 1) Send this note to: </STRONG>
    <SELECT NAME=
"mailto_name" >
        <OPTION SELECTED>
Martin Grant
        <OPTION> Jack Smith
        <OPTION> Bruce Lee
    </SELECT>

   
<P> <STRONG> 2) Give your email address: </STRONG>
    This indicates who sent the letter
    <P> <INPUT TYPE="text" NAME="signature"
    VALUE="[email protected]" SIZE="60">

    <P> <STRONG> 3) Message Body: </STRONG>
   
<P> <TEXTAREA COLS="60" ROWS="8" NAME="message_body">
   
Delete this message and type your message into this
    textbox. Press the &quot;Send Message&quot; button to send it
    off. You can press the &quot;Reset&quot; button to reset the
    form to the original values.
    </TEXTAREA>

   
<P> <INPUT TYPE="submit" VALUE="Send Message"> <INPUT TYPE="reset"> (reset form)
</FORM>

1) Send this note to:

2) Give your email address: This indicates who sent the letter

3) Message Body:

(reset form)



HOME            MAIN            NEXT            PREV

KEYGEN Element: Generate Encrypted Keys (Netscape Navigator only)

Usage:                <KEYGEN>
Can Contain:       empty
Can Be Inside:    ADDRESS, BLOCKQUOTE, BODY, DD, DIV, DT, FORM, LI, 
                          PRE, TD, TH, CENTER, P, Hn, 
                          A, APPLET, CAPTION, character highlighting

Attributes:          CHALLENGE, NAME

KEYGEN is used to generate encrypted user key certificates for submission to remote sites--the remote site can use this key to authenticate the user through a third=party authentication service. When present inside a FORM, KEYGEN produces a selectable list of keys. When the FORM containing a KEYGEN is submitted the user is prompted for a password, which is used to create the certificate key. The key is added to the submitted request as a standard name/value pair.
TOP

<FORM ACTION="http://side.edu/cgi-bin/send-note">
<P>
<STRONG> KEYGEN encrypted keys: </STRONG>
<KEYGEN NAME=
"keygen">

<P>
<INPUT TYPE="submit" VALUE="Send Message"> <INPUT TYPE="reset"> (reset form)

</FORM>

KEYGEN encrypted keys:

(reset form)



HOME            MAIN            NEXT            PREV

INPUT Element: Text Boxes, Checkboxes, and Radio Buttons

Usage:                <INPUT>
Can Contain:       empty
Can Be Inside:    ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIV, DT, FORM, LI, 
                          PRE, TD, TH, P, Hn, 
                          A, CAPTION, character highlighting

Attributes:          ACCEPT, ALIGN, CHECKED, MAXLENGTH, NAME, SIZE, SRC, TYPE, VALUE,
                          HSPACE, VSPACE
(Netscape only)
INPUT specifies a variety of editable fields, and should appear only inside a FORM. NAME and TYPE are two main attributes.
TOP

<FORM ACTION="http://www.server.com/cgi-bin/server-program" ENCTYPE="multipart/form-data">
   
<P> Button 1 input without <b>VALUE</b>: <INPUT TYPE="button" NAME="button1">
   
<P> Button 2 input with <b>VALUE</b>=&quot;button2&quot;: <INPUT TYPE="button" NAME="button2" VALUE="button2">

   
<P> Checkbox 1 input without <b>VALUE</b>: <INPUT TYPE="checkbox" NAME="checkbox1">
   
<P> Checkbox 2 input with <b>VALUE</b>=&quot;checkbox2&quot;:
        <INPUT TYPE="checkbox" NAME="checkbox2" VALUE="checkbox2">
   
<P> Checkbox 3 input with <b>VALUE</b>=&quot;checkbox2&quot; <b>CHECKED</b>:
        <INPUT TYPE="checkbox" NAME="checkbox3" VALUE="checkbox3" CHECKED>
    <P>
Checkbox with same NAMEs (You may select more than one choice or no choice):<BR>
        Which country have you been visited?
        <INPUT TYPE="checkbox" NAME="country" VALUE="USA"> USA
        <INPUT TYPE="checkbox" NAME="country" VALUE="CANADA"> CANADA
        <INPUT TYPE="checkbox" NAME="country" VALUE="MEXICO"> MEXICO

    <P> INPUT with TYPE=&quot;file&quot; <INPUT TYPE="file" NAME="file" VALUE="URL_filename">
   
<P> INPUT with TYPE=&quot;hidden&quot; <INPUT TYPE="hidden" NAME="hidden" VALUE="Hidden_Value">
   
<P> INPUT with TYPE=&quot;image&quot; <INPUT TYPE="image" NAME="image" SRC="icons/info.gif">
   
<P> INPUT with TYPE=&quot;password&quot; <INPUT TYPE="password" NAME="password" VALUE="Password_Value">
   
<P> Radio with same NAMEs (You may select one and only one choice):<BR>
        Which country do you like to visit most?
        <INPUT TYPE="radio" NAME="country" VALUE="USA"> USA
        <INPUT TYPE="radio" NAME="country" VALUE="CANADA"> CANADA
        <INPUT TYPE="radio" NAME="country" VALUE="MEXICO"> MEXICO

     <P>
INPUT with TYPE=&quot;text&quot;
        <INPUT TYPE="text" NAME="signature" VALUE="[email protected]" SIZE="60">

    <P> <INPUT TYPE="submit" VALUE="Send Message"> <INPUT TYPE="submit" VALUE="Reject Message"> <INPUT TYPE="reset"> (reset form)

</FORM>

Button 1 input without VALUE:

Button 2 input with VALUE="button2":

Checkbox 1 input without VALUE:

Checkbox 2 input with VALUE="checkbox2":

Checkbox 3 input with VALUE="checkbox2" CHECKED:

Checkbox with same NAMEs (You may select more than one choice or no choice):
Which country have you been visited? USA CANADA MEXICO

INPUT with TYPE="file"

INPUT with TYPE="hidden"

INPUT with TYPE="image"

INPUT with TYPE="password"

Radio with same NAMEs (You may select one and only one choice):
Which country do you like to visit most? USA CANADA MEXICO

INPUT with TYPE="text"

(reset form)



HOME            MAIN            NEXT            PREV

SELECT Element: Select from among Multiple Options

Usage:                <SELECT>...</SELECT>
Can Contain:      OPTION
Can Be Inside:    ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIV, DT, FORM, LI, 
                          PRE, TD, TH, P, Hn, 
                          A, CAPTION, character highlighting

Attributes:          MULTIPLE, NAME, SIZE

SELECT contains a list of selectable string values, the values of which are specified by OPTION element lying within the SELECT. A browser provides a way for the user to select from amongst these values, for example, a selectable list or pull-down menu.
TOP

<FORM ACTION="http://side.edu/cgi-bin/send-note">
   
<P> <STRONG> 1) Single Select (No MULTIPLE select). Send this note to: </STRONG>
   
<SELECT NAME="mailto_name1" >
   
     <OPTION VALUE="1"SELECTED> Martin Grant
        <OPTION VALUE="2"> Jack Smith
        <OPTION VALUE="3"> Bruce Lee
    </SELECT>

   
<P> <STRONG> 2) MULTIPLE select. Send this note to: </STRONG></BR>
   
<SELECT NAME="mailto_name2" MULTIPLE>
   
     <OPTION SELECTED> Martin Grant
        <OPTION> Jack Smith
        <OPTION> Bruce Lee
    </SELECT>

   
<P> <INPUT TYPE="submit" VALUE="Send Message"> <INPUT TYPE="reset"> (reset form)
</FORM>

1) Single Select (No MULTIPLE select). Send this note to:

2) MULTIPLE select. Send this note to:

(reset form)



HOME            MAIN            NEXT            PREV

OPTION Element: List of Options for SELECT

Usage:                <OPTION>...(</OPTION>
Can Contain:      characters
Can Be Inside:    SELECT
Attributes:           SELECTED, VALUE

OPTION sets the character-string options for a SELECT element. The content of OPTION is used as the value unless a VALUE attribute is explicitly set.

HOME            MAIN            PREV

TEXTAREA Element: Text Input Region

Usage:                <TEXTAREA>...(</TEXTAREA>
Can Contain:      characters
Can Be Inside:    ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIV, DT, FORM, LI, 
                          PRE, TD, TH, P, Hn, 
                          A, CAPTION, character highlighting

Attributes:           COLS, NAME, ROWS, WRAP (Netscape only)

TEXTAREA provides a mechanism for the user to input a block of text; usually this is done by providing a text input window. The text input by the user can grow to almost unlimited size, and is not limited, either horizontally or vertically, by the size of the displayed input window. Scroll bars are often presented if the text entered into a TEXTAREA grows to be (or initially is) bigger than the displayed region.
TOP

<FORM ACTION="http://side.edu/cgi-bin/send-note">

   
<P> <STRONG> Message Body: </STRONG>
   
<P> <TEXTAREA COLS="60" ROWS="8" NAME="message_body">
    Delete this message and type your message into this
   
textbox. Press the &quot;Send Message&quot; button to send it
   
off. You can press the &quot;Reset&quot; button to reset the
   
form to the original values.
    </TEXTAREA>

   
<P> <INPUT TYPE="submit" VALUE="Send Message"> <INPUT TYPE="reset"> (reset form)
</FORM>

Message Body:

(reset form)



HOME            MAIN            PREV
Hosted by www.Geocities.ws

1