Summary
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
Table 18.1. HTML Tags and Attributes Covered in Hour 18Tag/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" | | src="imageurl" | The source file for an image. | checked="checked" | | size="width" | The width, in characters, of a text input region. | maxlength="maxlength" | | <textarea>…</textarea> | |
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. |
|