The translation to WML (continued)
Translate form elements in do elements with the appropriate postfield elements
<textfield name=“zip”/></p>
<input type="text" name="zip"/>
<do type="accept" label="Show">
<go href=”/show" method="post">
<postfield name="zip" value="$(zip)"/>
Notes:
The translation of form collects all the input elements (textfield is nothing else than an alias for an <input type=“text”> element) defined inside the form and generate the appropriate go element.
If the session handling uses a WML variable setup on the phone, the XSLT stylesheets will generate the appropriate postfield element to send the value of the session id variable as part of the request.
By default, the form XHTML element uses the POST method to submit the values to the Web server. It is recommended to use POST instead of GET as it guaranteed that the content is correctly encoded between different character sets.