1 <?xml version="1.0"?> 2 <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> 3 <wml> 4 <card id="firstcard" title="Test for Setvar element"> 5 <p>Test for setvar element in WML </p> 6 <p>This is the first card , has variable: VAR='$var'</p> 7 <p>Click "Refresh" will update the value of VAR varaible which specified by setvar element</p> 8 9 <do name="Refresh" type="accept"> 10 <refresh> 11 <setvar name="var" value="VALUE"/> 12 </refresh> 13 </do> 14 </card> 15 </wml> 16