In XHTML MP, every form should contain one submit button. The form data is sent to the server when the submit button is pressed. If you are familiar with WML, you should know that data posting is done with anchor links in WML. This is not possible in XHTML MP.
The <input> element is used to create a submit button in XHTML MP. The type attribute should be specified as "submit", like this:
A submit button's caption is "Submit" by default. The value attribute is used to change a button's caption. The following XHTML MP markup changes the button's caption to "OK".
<input type="submit" value="OK"/>
When a reset button is pressed, the form that contains the reset button is set to the initial state. A reset button is not a compulsory component of a form in XHTML MP.
Like submit buttons, the <input> element is used to create a reset button. Reset buttons are of the type "reset".
A reset button's caption is "Reset" by default. Like submit buttons, a reset button's caption can be modified. The value attribute is used to do this. For example, the following XHTML MP markup creates a reset button with the caption "Default".
<input type="reset" value="Default"/>
|Previous Page||Page 35 of 36||Next Page|
- 1. XHTML MP (XHTML Mobile Profile) Introduction
- 2. Development of Wireless Markup Languages
- 3. Advantages of XHTML MP
- 4. WML Features Lost in XHTML MP
- 5. Syntax Rules of XHTML MP
- 6. XHTML MP MIME Types and File Extension
- 7. XHTML MP Document Structure
- 8. XHTML MP Generic Metadata
- 9. Comments in XHTML MP
- 10. Line Breaking in XHTML MP
- 11. XHTML MP Horizontal Rules
- 12. XHTML MP Headings
- 13. Font Style in XHTML MP
- 14. XHTML MP Preformatted Text
- 15. XHTML MP Lists
- 16. XHTML MP Images
- 17. XHTML MP Tables
- 18. Anchor Links in XHTML MP
- 19. XHTML MP Selection Lists
- 20. XHTML MP Input Elements
- 21. Submitting Form Data to the Server in XHTML MP