All pastes #752607 Raw Edit

Mine

public text v1 · immutable
#752607 ·published 2007-10-28 15:43 UTC
rendered paste body
<xar:set name="$mo">xarVarFetch('hail', 'checkbox', $hmail, NULL, XARVAR_NOT_REQUIRED)</xar:set><xar:if condition="!empty($hmail)"><xar:set name="fm">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:set name="$hidee">xarusergetvar('hmail')</xar:set>
<xar:if condition="$hidee eq '1'"><input type="checkbox" name="hail" value="1" checked onchange="return '0';">></xar:if> 
<xar:if condition="$hidee eq '0'"><input type="checkbox" name="hail" value="1" onchange="return '1';"></xar:if>

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

</form> 



hmail is checkbox dd hooked to roles module,
hide email?   hides email in an other page (profiles) with controlling whether it checked or not,

the problem is: it brings the right data, (whether it checked or not) however it doesnt change on changes, checking unchecking not works :(
i tried with onchange:"return false;" nothing happened