WML Examples
A WML deck with two cards - one for user input and one for displaying the result - can be set up, as demonstrated in this example:
<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN""You are not allowed to view links.
Register or
Login"><wml><card id="card1" title="Tutorial"><do type="accept" label="Answer"> <go href="#card2"/></do><p><select name="name"> <option value="HTML">HTML Tutorial</option> <option value="XML">XML Tutorial</option> <option value="WAP">WAP Tutorial</option></select></p></card><card id="card2" title="Answer"><p>You selected: $(name)</p></card></wml>
The first card might look like this in your mobile phone display:
----- Tutorial ----------
HTML Tutorial
XML Tutorial
WAP Tutorial Answer
The second card might look like this:
----- Answer ----------
You Selected: HTML