Wap/WML : Fill in forms
François Houste
Attributes for the selection list
There are also other attributes available to further customise your question forms. They concern the global definition of
the list (
<select>) and the definition of each option (
<option>).
Besides
multiple, here are the attributes available for the
<select> tag:
- name: This is the name assigned to the list field. This attribute is used to ascertain the replies selected by your visitors.

- value: This is the default value for the question. If the visitor does not make any choice, this value will automatically be returned
by the form.

- title: A well-known attribute. This is the title of the multiple choice list which will be displayed on the phone screen.

- iname: This is equivalent to name, but concerns the position of the chosen option. It enables you to create a variable which will contain this information.

- ivalue: This is the value of the choice made by the visitor, which lies between 1 and the number of possible choices.

As for the <
option> tag, it accepts the following attributes:
- title: This is the title given to the relevant item on the list. At the moment, only a few cellular phones display this information.

- value: This is the value assigned to the option. It will be sent to the name attribute of the <select> tag once the selection has been made.

- onpick: This is the equivalent of onclick in HTML. It allows the user to be redirected towards a specific deck after his selection. The value assigned is a complete
URL.

All these attributes enable you to build forms of varying levels of complexity. In general, you should opt for selection lists
rather than text fields, since typing information on a mobile keypad is not very easy.