
|
 |

Accepting user input

Just as with conventional web pages, you
can create a "drop down menu" with a list of possible options for a
user to select. How each phone displays this varies considerably, and that
should be taken into account when using this feature.
What you do with the selected
items is to usually go to a particular page, but it can also be used to send
values to a WMLScript, but we are not dealing with that yet.
An example follows...
<?xml
version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<wml>
<card id="MainCard" title="This is a
first card">
<p align="center">
This is a sample text
<br/><br/>
<select name="x" iname="i">
<option value="d">dog</option>
<option value="c">cat</option>
<option value="h">horse</option>
</select>
</p>
</card>
</wml> |
|

|