Документация
HTML CSS PHP PERL другое
The form Element
 
Previous Page
Table of Contents
Next Page

The form Element

All forms begin with the form element:

<form>

</form>

The form element has two required attributes you'll need to add to it for the form to function at all:

  • method This attribute defines which way the form is going to communicate with your web server. The value options are get and post.

  • action The action attribute provides the correct path to where the form script is processed (see Example 5-1).

Example 5-1. Adding method and action attributes and values to a form element
<form method="get" action="http://www.myserver.com/cgi-bin/mailscript/">

</form>

QUANTUM LEAP

will be as robust as what your needs might require.

It's important to point out that not all service providers allow you to have advanced scripts, so you'll really need to do your homework in advance to get the service you require.


At this point, the markup you've created will not do anything in and of itself. Forms work based on the concept of controls. Controls are the default boxes and buttons that appear as a result of your HTML form markup.

    Previous Page
    Table of Contents
    Next Page


     Приглашаем посетить сайты 
    Мода Чехов Крылов Автомобили Грибоедов Хлебников Ходасевич Лесков Салтыков-Щедрин CSS