|
|
EIΣΑΓΩΓΗ: Δήλωση φόρμας (FORM)
Η βασική δήλωση για την κατασκευή μιας φόρμας στη σελίδα είναι:
< FORM παράμετροι >
παράθεση στοιχείων φόρμας
(με παράλληλη διαμόρφωση σελίδας)
< /FORM >
|
Παράμετροι της FORM
- ACTION=string [ απαραίτητη δήλωση]
- Καθορίζει τη διεύθυνση στην οποία θα αποσταλλεί η φόρμα και το πρόγραμμα που θα εκτελεσθεί. Πχ:
ACTION="http://www.your.site/cgi-bin/script.cgi"
- ENCTYPE=string
- Specifies the format of the data being submitted by the form. The object model property for this attribute is called "encoding".
- CLASS=string
- Specifies the class of the tag being defined. This is most often used to associated a sub-classed style sheet with the tag.
- ID=string
- An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid names to script with are any alphanumeric string that begins with a letter. Valid special characters include underbar "_".
- LANG=string
- This specifies the language to use. The specifier is an ISO standard language abbreviation.
- LANGUAGE=JAVASCRIPT ή JSCRIPT ή VBS ή VBSCRIPT
- Specifies the language that the current script is written in. JavaScript is the default for this attribute.
- METHOD=GET ή POST [ απαραίτητη δήλωση]
- Καθορίζει με ποιό πρωτόκολλο θα αποσταλλούν τα δεδομένα στον server. Οι περισσότεροι servers υποστηρίζουν τη μέθοδο POST.
- NAME=string
- Specifies the name of the control, bookmark, or applet.
- STYLE=string
- Specifies an in-line style sheet for the tag.
- TARGET=string
- Specifies the window or frame to target the contents at.
- TITLE=string
- The Title attribute is used to provide advisory information.
- event = script
- Specifies that the contained controls take part in a form. Can be one or more of these events:
- onclick, ondblclick, onhelp, onkeydown, onkeypress, onmousedown, onmousemove, onmouseout,
onmouseover, onmouseup, onreset, onselectstart, onsubmit.
Syntax Forms, March 2000
|