Приглашаем посетить
Литература 20 век (20v-euro-lit.niv.ru)

Summary

Previous Page
Table of Contents
Next Page

Summary

This hour demonstrated how to create HTML forms, which allow visitors to your web pages to enter specific information and send it back to you via email. You also found that you can set up a script or program on your web server to process form data. Your ISP, web server administrator, or server software vendor can help you do this. You even learned how to make a PayPal Buy Now button that allows people to purchase and pay for items directly from your web pages, which is especially useful in a web site that accepts online orders for products. You can be doing business online and making money in just a few minutes using nothing more than the HTML form code generated for you by PayPal.

Table 18.1 summarizes the HTML tags and attributes covered in this hour.

Table 18.1. HTML Tags and Attributes Covered in Hour 18

Tag/Attribute

Function

<form></form>

Indicates an input form.


Attributes

action="scripturl"

The address of the script to process this form input.

method="post/get"

How the form input will be sent to the server. Normally set to post, rather than get.

<input />

An input element for a form.


Attributes

type="controltype"

The type for this input widget. Possible values are checkbox, hidden, radio, reset, submit, text, and image.

name="name"

The unique name of this item, as passed to the script.

value="value"

The default value for a text or hidden item; for a check box or radio button, the value to be submitted with the form; for reset or submit buttons, the label for the button itself.

src="imageurl"

The source file for an image.

checked="checked"

For check boxes and radio buttons, indicates that this item is checked.

size="width"

The width, in characters, of a text input region.

maxlength="maxlength"

The maximum number of characters that can be entered into a text region.

<textarea></textarea>

Indicates a multiline text entry form element. Default text can be included.


Attributes

name="name"

The name to be passed to the script.

rows="numrows"

The number of rows this text area displays.

cols="numchars"

The number of columns (characters) this text area displays.

<select></select>

Creates a menu or scrolling list of possible items.


Attributes

name="name"

The name that is passed to the script.

size="numelements"

The number of elements to display. If size is indicated, the selection becomes a scrolling list. If no size is given, the selection is a pop-up menu.

multiple="multiple"

Allows multiple selections from the list.

<option></option>

Indicates a possible item within a <select> element.


Attributes

selected="selected"

With this attribute included, the option will be selected by default in the list.

value="value"

The value to submit if this option is selected when the form is submitted.



Previous Page
Table of Contents
Next Page