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

<test id="wml2/uabehaviour/formprocessing/forminteraction/checkboxcontrol/7" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.4" device="both">
	<assertion>When the NAME attribute of the INPUT element is used to name 
	the control variable, the TYPE attribute of the INPUT element is set to 
	'checkbox', the named variable must be set to a semicolon-delimited 
	string of the VALUE attributes of the selected INPUT elements that 
	contain a VALUE attribute.
	</assertion>
	<specnote>Create a card with three INPUT elements with the TYPE attribute 
	set to 'checkbox'. Set all NAME attributes to the same name, and do 
	not specify one of the VALUE attributes. Select all the three checkboxes 
	and make sure that the value of the NAME contains a semicolon-delimited 
	string of the VALUE attributes of the two selected INPUT elements that 
	contain a VALUE attribute.
	</specnote>
	<results>
		<result ci="true" resulttype="one">
			<name>test</name>
			<value>plane;car</value>
			<value>car;plane</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please select all the three checkboxes 
					and then Submit the Form
				</p>
				<form action="#card2">
					<fieldset>
						<p>Plane</p>
						<input type="checkbox" name="choice" value="plane" />
						<p>Train</p>
						<input type="checkbox" name="choice" />
						<p>Car</p>
						<input type="checkbox" name="choice" value="car" />
					</fieldset>	
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:onevent type="enterforward">
					<wml:go href="[[resulturl]]">
						<wml:postfield name="test" value="$choice" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
	</method>
</test>
