<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
			"http://www.phone.com/dtd/wml11.dtd" >
<!--  Control examples: Select & Input fields  -->

<wml>
    <card>
	<p mode="nowrap">
 	    UI Controls 
	    <select>
		<option onpick="#i1">Input Field</option>
		<option onpick="#s1">Select List</option>
		<option onpick="#m1">Multiple Choice</option>
	    </select>
	</p>
    </card>

    <card  id="i1">
	<do  type="accept">
	    <go  href="#i2"/>
	</do> 
	<p>
	    Password: 
	    <input  name="pswd" type="password" format="mmmm*m"/>
	</p>
    </card>

    <card  id="i2">
	<do  type="options" label="Clear">
	    <refresh>
		<setvar  name="pswd" value=""/>
	    </refresh>
	</do> 
	<p>
	    You entered: 
	    <br/>$pswd 
	</p>
    </card>

    <card  id="s1">
	<do  type="accept">
	    <go  href="#s2"/>
	</do> 
	<p>
	    Pick default 
	    <select  name="defcolor" ivalue="2">
		<option  value="1">First</option>
		<option  value="2">Second</option>
	    </select>
	</p>
    </card>

    <card  id="s2">
	<do  type="accept">
	    <go  href="#s3"/>
	</do> 
	<p>
	    You picked $defcolor 
	    <select  name="color" iname="defcolor">
		<option  value="green">Green light</option>
		<option  value="red">Red light</option>
	    </select>
	</p>
    </card>

    <card  id="s3">
	<p>
	    Your choice was $color! 
	</p>
    </card>

    <card  id="m1">
	<do  type="accept">
	    <go  href="#m2"/>
	</do> 
	<p>
	    Multiple Choice 
	    <select  multiple="true" name="picks" value="1;4;6">
		<option  value="1">Ron</option>
		<option  value="2">Eric</option>
		<option  value="3">Alan</option>
		<option  value="4">Jennifer</option>
		<option  value="5">Liz</option>
		<option  value="6">Neil</option>
		<option  value="7">Don</option>
		<option  value="8">Sandra</option>
		<option  value="9">Katie</option>
	    </select>
	</p>
    </card>

    <card  id="m2">
	<p>
 	    You picked: 
	    <br/>$picks 
	</p>
    </card>
</wml>
