Checked At:06:10
4 Guests
0 Users
Online doing the past 15 Minutes!
brugbart.com - Edition/Last Updated: 13. October 2008
Posted The: 01/09/2008 - AT: 14:39
The HTML Input element is used togetter with form elements, to accept user contributed data. Usually a server-side script handles the submitted data.
You should not rely on client-side ways of validating forms, or restrict the forms. Additional server-side validation will need to take place for security reasons.
Standard Attributes
| Attribute: | Value: | Description: | DTD: |
| Attrs | Other Attributes | Common, I18n, Event | STF |
| type | InputType | The Type of the Input element. | STF |
| name | Character Data | Unique name of the input, submitted as a part of the form. | STF |
| value | Character Data | Specify for radio buttons and checkboxes. | STF |
| checked | checked | For radio buttons and check boxes. | STF |
| disabled | disabled | For radio buttons and check boxes. | STF |
| size | Character Data | Specific to each type of field. | STF |
| readonly | readonly | for text and passwords. | STF |
| maxlength | NUMBER | Max Characters for text-fields. | STF |
| src | URI | For fields with images. | STF |
| alt | Character Data | Short Description. | STF |
| usemap | URI | Use client-side image map. | STF |
| ismap | ismap | Use server-side image map. | STF |
| tabindex | NUMBER | Position in tabbing order. | STF |
| accesskey | {CHARACTER} | key used for accessibility. | STF |
| onfocus | SCRIPT | The element got the focus. | STF |
| onblur | SCRIPT | The element lost the focus. | STF |
| onselect | SCRIPT | Some text was selected. | STF |
| onchange | SCRIPT | The element value was changed. | STF |
| accept | ContentTypes | List of MIME types for file upload. | STF |
DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.
The Simple Example.
<input type="text" name="name">
The Full Example.
<form action="action.php" method="post"> <input type="text" name="name"> <input type="text" name="email"> <textarea cols="40" rows="5" name="textmsg"></textarea> <input type="submit" value="Submit"> </form>
The full example was included to save you the time required to look up each reference entry.
Author: BlueBoden
Comments: [0]


Checked At:06:10
4 Guests
0 Users
Online doing the past 15 Minutes!
This page was created in 0.0658211708069 seconds
Welcome Guest