Forms
are the most advanced feature in HTML language.
Although, it's the easiest solution for creating
dynamic mailing forms that will keep you in
contact with your visitors. Forms can be used to
make surveys, feedbacks or to send orders to the
merchant's email.
● Add a text
input:
<INPUT
TYPE="text" NAME="FIRST-ITEM" SIZE=12>
▪ Change the size
<INPUT TYPE="text"
NAME="FIRST-ITEM" SIZE=25>
▪ since information in html forms
is sent as a name/value pair the text
input must have a 'name', the value is whatever
the user typed in or a value could be given
<INPUT
TYPE="text" SIZE=25 VALUE="hello world">
▪ input password type
is very similar exept it displays the * symbol
instead of alpha numeric characters type someting in:
radio buttons must have a 'value',
radio inputs should have the same 'name' because
they only give the user one possible option. It is
possible to offer the user more options with radio
inputs by giving them a different 'name'
Subscribe Unsubscribe Include attachmentDon't include attachment
Check boxes are used when
you want to let the visitor select one or more
options from a set of alternatives. If only one
option is to be selected at a time you should use
radio buttons
instead.
Below is a listing of valid
settings for check boxes:
▪
The name setting adds an internal
name to the field so the program that handles the
form can identify the fields.
▪
The value setting defines what
will be submitted if checked.
▪
The align setting defines how the
field is aligned. Valid entries are: TOP,
MIDDLE, BOTTOM, RIGHT, LEFT, TEXTTOP, BASELINE,
ABSMIDDLE, ABSBOTTOM.
▪
The tabindex setting defines in
which order the different fields should be
activated when the visitor clicks the tab
key.
Sometimes you have to use a PHP
application that requires register_globals set
to "On". You can safely do this with
mod_security. I just wrote a small article
(actually it is part of the user manual)
explaining how you can do it.