|
Slide 11.15: WML input fields (cont.) Slide 11.17: WML variables, comments, and character entities Home |
|
GO and POSTFIELD Tags
GO Tag
<go> tag is optional.
<go> tag can contain <postfield> or <setvar> tag.
href attribute.
For example,
<go href="someurl" method="method">
... <postfield> ...
... <setvar> ...
</go>
href: It is required and is the URL of the new card.
The URL usually cannot exceed 255 characters in length.
method: The optional method attribute dictates the HTTP submission method.
There are only two permitted values:
post: A post submission includes the data with the submission.
The encoded form input is sent via stdin.
get: A get submission appends the data as a query to the URL.
The encoded form input in the environment variable QUERY_STRING.
POSTFIELD Tag
name attribute and must be a valid WML variable name.
The value is set by the value attribute.
For example,
<postfield name="somename" value="somevalue"/>A
<go> element can contain one or more <postfield> elements.
If the destination of a <go> element is a card within the same deck, all of the <postfield> elements will be ignored.