Using Variables

WML supports programming variables within the body of the deck. A programming variable is simply a name associated with a data value. You can think of the variable as storing or containing that value.

Variables simply allow you to reference data by name within your WML decks. You can retrieve and change those values in response to browser events. You will typically use these variables to hold data that you retrieve from the user to alter the behavior of your application. These variables always reference string data and, by default, all uninitialized variables are empty strings.

Because the data you retrieve from the user is one of the most important pieces of an application, this section will detail the rules for working with ...

Get WAP Development with WML and WMLScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.