Data

array(2) {
  ["username"]=>
  string(10) "artoodetoo"
  ["showemail"]=>
  string(1) "1"
}

Template

<!-- .INCLUDE inc-header -->

	<h2>Result</h2>

<form action="test.php" method="post">

	<p><label><strong>Username:</strong><br />
	<input name="username" value="{@username}" /></label>
	</p>

	<p><strong>Show email:</strong><br />
	<label><input type="radio" name="showemail" value="0"{$showemail|check,0} />
		Display your e-mail address.<br /></label>
	<label><input type="radio" name="showemail" value="1"{$showemail|check,1} />
		Hide your e-mail address but allow form e-mail.<br /></label>
	<label><input type="radio" name="showemail" value="2"{$showemail|check,2} />
		Hide your e-mail address and disallow form e-mail.<br /></label>
	</p>

	<p><input type="submit" name="update" value="Update" />
	</p>

</form>

<!-- .INCLUDE see-also-xmp -->

<!-- .INCLUDE inc-footer -->

Result

Show email:


See also