Home
Home Page
The menu of a choice in forms
The loader in HTML
Konfigurirovanie a site with the help of a file .htaccess
Options-Indexes
Perenapravlenie on other address
Replacement with the image. Method Farnera
Example the first. Headings of pages
Replace cautiously
Method of overlapping by a background (Cover-up Method)
WAP (Wireless Application Protocol)
Reduction of time of loading of webs - pages with help CSS
Mnogozadachnost` in JavaMe at HTTP connection
Interaction of streams.
Nine advice for job with Web 2.0
Beginning php to the programmer or how to start to earn
Substantiation of necessity of Storehouse of the data
Misses in the data
The directory by mistakes Oracle
Forms in HTML documents
Links
 

The menu of a choice in forms


As the menu of a choice in forms understand such element of the interface, as LISTBOX. There are three types of tags of the menu of a choice for forms:


* Select - the user chooses one value from the fixed list of the values submitted by tags OPTION. Dannj the kind is represented as dropping out LISTBOX.

* Select single - the same, as Select, but on the screen the user sees simultaneously three elements of a choice. If it is more than them, it is given automatic vertical skrolling.

* Select multiple - allows to choose some elements from LISTBOX.


SELECT


Tag SELECT allows the user to choose value from the fixed list of values. Usually it is submitted to dropping out menus.


Tag SELECT has one or more parameter pezhdu a starting tag <SELECT> and finishing </SELECT> .Po to the default, the first element is displayed in a line of a choice. An example of a tag <SELECT>:



<FORM>

<SELECT NAME=group>

<OPTION> AT 386

<OPTION> AT 486

<OPTION> AT 586

</SELECT>

</FORM>


SELECT SINGLE


Tag SELECT SINGLE is the same, as Select, but on the screen the user sees simultaneously some elements of a choice (three by default). If it is more than them, it is given automatic vertical skrolling. The quantity{amount} of simultaneously displayed elements is defined{determined} by attribute SIZE. An example:



<FORM>

<SELECT SINGLE NAME=group SIZE=4>

<OPTION> AT 386

<OPTION> AT 486

<OPTION> AT 586

<OPTIONS> Pentium PRO

</SELECT>

</FORM>


SELECT MULTIPLE


Tag SELECT MULTIPLE is similar to tag SELECT SINGLE, but the user can choose simultaneously more than one element of the list. Attribute SIZE defines{determines} quantity{amount} of elements simultaneously seen on the screen, attribute MULTIPLE - a maximum quantity of simultaneously chosen elements. An example:



<FORM>

<SELECT SINGLE NAME=group SIZE=4 MULTIPLE=2>

<OPTION> AT 386

<OPTION> AT 486

<OPTION> AT 586

<OPTIONS> Pentium PRO

</SELECT>

</FORM>


If some values, to peredajuts server corresponding chosen quantity{amount} of parameters NAME=VALUE with identical values NAME, but different VALUE are chosen simultaneously.

Departure of files by means of forms


Forms can be used for sending not only small reports of information vvide parameters, together with for sending files.


Attention! As the given opportunity demands support of reception of files WEB - the server, that, accordingly, it is necessary, that the server supported reception of files!


For example:



<FORM ENCTYPE = "multipart/form-data" ACTION = "url" METHOD=POST>

To send the given file: <INPUT NAME = "userfile" TYPE = "file">

<INPUT TYPE = "submit" VALUE = " To send a file ">

</FORM>



<FORM action = " http: // pandemonium.cs.nstu.ru / ~ gun/docs/sites.htm " encType = "multipart/form-data" method = "post">

To send the given file: <INPUT name = "userfile" type = "file">

<INPUT type = "submit" value = " To send a file ">

</FORM>