15 Forms & CGI Scripts

Back to Web Design

Assignment #23

 CGI Script (Common Gateway Interface script) is any program or set of commands running on the Web server that receives data from the Web page and then acts on that data to perform a certain task.

  • Service providers make CGI Scripts available to their customers.
  • They are stored and run on the server. (not the users computer)

Forms Common Elements

  • Input box            for text and numerical entries
  • Radio buttons      to select a single option from a predefined list
  • Selection list        for long lists of options, usually a drop down box
  • Check box          to specify an item as either being present or absent
  • Text area            for extended entries that contain several lines of text
  • Submit button     to send the form to the CGI script
  • Reset button       to reset the form to its original state

Field                            an element in which the user can enter information

Field value                  information entered in a field

To create a form

<FORM Properties>

   Form elements and layout tags

</FORM>  

To Name a form

<FORM NAME=form_name>

Input box                    is a single-line box into which the user can enter text or numbers

Creating an Input Box:

<INPUT TYPE=Option NAME=text VALUE=value SIZE=value MAXLENGTH=value>

TYPE sets the kind of input field

BUTTON                     CHECKBOX             HIDDEN                                IMAGE                          PASSWORD             RADIO                                RESET                           SUBMIT                   TEXT                                        TEXTAREA

NAME sets the field name

VALUE assigns a default value to the input box

SIZE defines the width of the input box in number of characters

MAXLENGTH defines the maximum number of characters allowed in the field.