Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




<FORM ...>

Usage Recommendation
thumbs up use it

  • ACTION: URL of the CGI program
  • METHOD: how to transfer the data to the CGI
  • NAME: name of this form
  • ENCTYPE: what type of form this is
  • TARGET: what frames to put the results in
  • onSubmit: script to run before the form is submitted
  • onReset: script to run before the form is reset

<FORM ...> indicates the beginning of a form. All other form tags go inside <FORM ...>. In its simplest use, <FORM ...> can be used without any attributes:

this code produces this
name: <INPUT><BR>
email: <INPUT>

Most forms require either the ACTION or NAME attributes to do anything meaningful. (The <FORM ...> attribute is always required, but not necessarily used in every situation.) For example, to make this form work, we'll add the <FORM ACTION="..."> attribute, which indicates the CGI program to send the form data to. We'll also use NAME in the <INPUT ...> tags, and add a Submit button:

this code produces this
<FORM ACTION="../cgi-bin/">
name: <INPUT NAME=realname><BR>
email: <INPUT NAME=email><BR>

NAME is useful when you want to use scripting

  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire