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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/textinputcontrol/30"
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.2" device="both">
	<assertion>When using a text input control, the control is an INPUT 
	element, and the TYPE attribute is set to "password", the WML:NAME attribute 
	must name the form control variable.
	</assertion>
	<specnote>Create a card(c1) that holds a text input control, where the 
	TYPE attribute is set to "password" and the WML:NAME attribute names the form 
	control variable. The card(c1) could also hold a link to a second card(c2). 
	Call the card(c1), enter a value, then click the link. This will take you 
	to the second card(c2) that will display the variables value.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please Enter a value for the recipient. and submit the form</p>
				<form action="#card2">
					<fieldset>
						<p>recipient:</p>
						<input type="password" wml:name="recipient" value="nb@nb.com" />
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
						<input type="reset" value="reset" />
					</fieldset>
				</form>
				<p>Was the value of the control (your value) displayed in card2?
					<br />
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 2<br />
					$$recipient = $recipient<br />
					Now go back.
				</p>
			</wml:card>
		]]>
	</method>
</test>
