<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
			"http://www.phone.com/dtd/wml11.dtd" >
<!--  Card input style example   -->

<wml>
    <card>
  	<p mode="nowrap">
 	    Card styles 
	    <select>
		<option  onpick="#f1">Nested fields</option>
		<option  onpick="#f2">Sequence of fields</option>
	    </select>
	</p>
    </card>

    <card  id="f1" title="Employee" ordered="false">
	<onevent  type="onenterbackward">
	    <prev/>
	</onevent>
	<do  type="accept" label="Done">
	    <go  href="#results"/>
	</do> 
	<p>
	    Prefix: 
	    <select  title="Prefix" name="prefix">
		<option  value="Mr.">Mr</option>
		<option  value="Mrs.">Mrs</option>
		<option  value="Ms.">Ms</option>
	    </select> 
	    First Name: 
	    <input  title="First" name="fname"/>
	    Last Name: 
	    <input  title="Last" name="lname"/>
	</p>
    </card>

    <card  id="f2" title="Employee" ordered="true">
	<onevent  type="onenterbackward">
	    <prev/>
	</onevent>
	<do  type="accept" label="Done">
	    <go  href="#results"/>
	</do> 
    	<p>
	    Prefix: 
	    <select  title="Prefix" name="prefix">
		<option  value="Mr.">Mr</option>
		<option  value="Mrs.">Mrs</option>
		<option  value="Ms.">Ms</option>
	    </select> 
	    First Name: 
	    <input  title="First" name="fname"/> 
	    Last Name: 
	    <input  title="Last" name="lname"/>
	</p>
    </card>

    <card  id="results">
	<do  type="options" label="Clear">
	    <refresh>
		<setvar  name="prefix" value=""/>
		<setvar  name="fname" value=""/>
		<setvar  name="lname" value=""/>
	    </refresh>
	</do> 
	<p>
	    Thank you! 
	    <br/>$prefix $fname $lname 
	</p>
    </card>
</wml>
