<?xml version="1.0" encoding="UTF-8"?>

<test id="wml2/markup/contextandnav/wmlgoelement/27" class="A" scope="wml2" 
	testtype="application" type="manual" source="wml2#6.16.4" device="both">
	<assertion>When the WML:GO element is specified, the METHOD attribute is 
	set to 'post', and the ENCTYPE attribute is set to 'multipart/form-data', 
	the WML:POSTFIELD element is used to name a field, and the value of the 
	WML:POSTFIELD's VALUE attribute references the control variable for a 
	multiple-selection control, the field value must be submitted as 
	specified in [HTML4] where one part is included for each item in the list.
	</assertion>
	<specnote>Create a card containing the WML:GO element, set the METHOD 
	attribute to 'post' and the ENCTYPE attribute to 'multipart/form-data'. 
	The card should also contain two OPTION elements within a SELECT element. 
	Set the WML:VALUE attribute of the SELECT element to a semicolon-delimited 
	list of two of the OPTION elements VALUE attributes and the MULTIPLE 
	attribute to 'multiple'. Call the card, check that the options have been 
	pre-selected and make sure, when the task is executed, one part for each 
	selected option is included in the body.
	</specnote>
	<results>
		<result ci="true">
			<name>toto</name>
			<value>option1</value>
			<value>option2</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main">
				<p>Automatic selection
					<select wml:name="myoptions" wml:value="option1;option2" multiple="multiple">
						<option value="option1">option1</option>
						<option value="option2">option2</option>
					</select>
				</p>
				<p>Click on the link
					<wml:do type="accept">
						<wml:go method="post" enctype="multipart/form-data" href="[[responseurl]]">
							<wml:postfield name="toto" value="$(myoptions)"/>
							[[sessionvars]]
						</wml:go>
					</wml:do>
				</p>
			</wml:card>
		]]>
	</method>  
</test>
