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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/menucontrol/37" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.3" device="both">
  <assertion>When the WML:VALUE, attribute of the SELECT element is 
  assigned, the NAME attribute of the SELECT element must be ignored. 
  </assertion>
  <specnote>Create a card with three OPTION elements within a SELECT 
  element. Set both the WML:VALUE and NAME attribute of the SELECT element 
	Select one of the option and submit the form. Make sure that the 
	variable named by the NAME attribute is ignored when submitting.
  </specnote>
  <results>
    <result>
      <name>test</name>
      <value>a</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please select the &quot;Railway&quot; option
					and then submit the form
				</p>
				<form action="#card1">
     			<fieldset>
  					<p>Choice</p>
    				<select name="choice" wml:value="train">
      				<option value="plane">Airplane</option>
      				<option value="train">Railway</option>
      				<option value="car">Automobile</option>
    				</select>
    			</fieldset>
  				<fieldset>
   					<input type="submit" value="submit" />
   				</fieldset>
   			</form>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card1">
				<wml:onevent type="enterforward">
					<wml:go href="[[resulturl]]">
						<wml:postfield name="test" value="a$choice" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
  </method>
</test>
