<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="setx" title="WML Variables">
<p>What is your favorite fruit?</p>
<p>
  <!-- This task sets the value of x. -->
  <anchor>Set to Blueberries <go href="#showx">
  <setvar name="x" value="blueberries"/>
  </go>
  </anchor>
</p>
</card>

<card id="showx" title="Show Variable Value">
<p>Your favorite fruit is $(x).</p>
<p>
  <anchor>Back <go href="#setx"/></anchor>
</p>

<!-- These two task updates the value of x. -->
<p>
 <anchor>Set to Peaches<refresh>
 <setvar name="x" value="peaches"/>
 </refresh>
 </anchor>
 <br/>
 <anchor>Set to Bananas<refresh>
 <setvar name="x" value="bananas"/>
 </refresh>
 </anchor>
</p>

<!-- This task sends the value of x to the server as the variable fruit. -->
<p>
 <anchor>Send Fruit to Server
   <go href="http://learnto.mobi/?fruit=$(x)" method="get" />
 </anchor>
</p>

</card>
</wml>