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

<wml>

  <card title="Order">
    <do type="accept">
      <go href="#order2"/>
    </do>
    <p>
      Credit Card:
      <input name="credit" format="NNNNNNNNNN*N"/>
    </p>
  </card>

  <card id="order2" title="Order">
    <do type="accept">
      <go href="#order3"/>
    </do>
    <p>
      Card Expires: [MM-YY]:
      <input name="exp" format="NN\-NN"/>
    </p>
  </card>

  <card id="order3" title="Order">
    <do type="accept">
      <go href="#order4"/>
    </do>
    <p mode="nowrap">
      Shipping Method: 
      <select name="charge">
        <option value="2.00">US Mail -- $$2.00</option>
        <option value="4.00">UPS -- $$4.00</option>
        <option value="4.00">FedEx -- $$4.00</option>
      </select>
    </p>
  </card>

  <card id="order4" title="Order">
    <do type="accept" label="Yes">
      <!-- In the real world, we would submit the order to the server. -->
      <!-- The server would return a transparent card that would exit -->
      <!-- or abort depending on the transaction results. -->
      <!-- Here, we pretend the transaction was successful and exit. -->
      <exit>
        <send value="$(charge)"/>
      </exit>
    </do>
    <do type="options" label="No">
      <throw name="abort"/>
    </do>
    <p>
      Proceed and submit this order?
    </p>
  </card>  

</wml>
