i found one of the problem
with trim function it send correctly the first part, but after don't send correctly the second part:
frmAllowedReferers.refererBtnValue.value='Edit';
of
<input type="button" name="refererEditBtn" value="Edit" class="form" onClick="frmAllowedReferers.refererBtnIDName.value='<?php echo trim($line); ?>'; frmAllowedReferers.refererBtnValue.value='Edit'; frmAllowedReferers.submit();">
_
thanks for any help