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

<test id="wml2/uabehaviour/formprocessing/forminteraction/radiobuttoncontrol/3" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.3.5" device="both">
	<assertion>When the NAME attribute of the SELECT element is used to name 
	the control variable, the TYPE attribute of the INPUT element is set to 
	'radio', the named variable must hold the value of the VALUE attribute 
	of the selected INPUT element.
	</assertion>
	<specnote>Create a card with three INPUT elements with the TYPE attribute 
	set to 'radio'. Set all NAME attributes to the same name, and give 
	each VALUE attribute a unique value. The card could also use a form 
	submit button to go to a second card, which will display the variables 
	value. Load the card, check one of the buttons, and then go to the 
	second card and make sure that the variable holds that value of the 
	selected radio buttons VALUE attribute.
	</specnote>
	<results>
		<result ci="true">
			<name>test</name>
			<value>train</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please select the Train radio button 
					and then Submit the Form
				</p>
				<form action="#card2">
					<fieldset>
						<p>Plane</p>
						<input type="radio" name="choice" value="plane" />
						<p>Train</p>
						<input type="radio" name="choice" value="train" />
						<p>Car</p>
						<input type="radio" 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>
