All pastes #769843 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-11 18:36 UTC
rendered paste body
<xar:set name="$mos">xarVarFetch('hide', 'int', $hmail, NULL, XARVAR_NOT_REQUIRED)</xar:set>
<xar:if condition="!empty($hmail)"><xar:set name="abcc">xarUserSetVar('hmail',$hmail)</xar:set></xar:if>

<form name="profile_form" method="post" action="#xarservergetcurrenturl()#" enctype="application/x-www-form-urlencoded"> 

<em> Hide email from public?: </em> <xar:data-input name="hide" type="checkbox" value="$hidedata" />

<input type="submit" value="Update"> 

</form> 


** xarusergetvar('hmail') dd hooked to roles, its checkbox for controlling that user want to hide his mail or not
*** with this code, i am trying to bring checked status, and can edit.. however it all the time brings check box checked.
**** its something weird with xar checkboxes, normal html checkbox value works like a label, the check status controlled by: checked="checked" checked="yes" checked
however in xar checkbox value defines whether its checked or not, plus it controls checked status too.