There are two ways you can return variable information to your application:
It is strongly recommended that you return variable information in POST data instead of query string arguments. This allows the UP.Link server to perform any necessary transcoding of data from the UP.Phone's character set to a character set understood by your application. For more information on character set and internationalization issues see Chapter 9.
The following section describe the two methods of returning information to your application.
The following HDML allows the user to enter a stock symbol; it then generates a URL request with the stock symbol specified in an argument. This interface is shown in Figure 1-13.
http://foo.com/stock.cgi">FIGURE 1-13. Setting POST data with variables
Suppose we want to allow the user to choose from a list of stocks instead of entering one. To do this, we could modify the previous example as follows:
http://foo.com/stock.cgi">FIGURE 1-14. Setting POST data with variables
Suppose you want to implement the interface shown in Figure 1-13 using query string arguments instead of POST data. The following HDML demonstrates how to do this.
http://foo.com/stock.cgi?stk=$(stock)">FIGURE 1-15. Setting query string arguments with variables