hi,
i really need guide on this....
what i want to do is to update the new leave balance as the total available balance...
[attachment=0]2.png[/attachment]
as u can see the attachment....
user will insert total days apply...
with the current balance is the total balance available for the staff....
the balance day is to calculate (current balance - total day apply)...
and i want to update the balance day as the current balance....
i mean the balance is carry forward for each user....
i already make the form here...
how to make the current blance textbox to minus total days applied textbox....
and the value is showed at the balance day box......
and update is as the new current blance
thank you.......
i really need guide on this....
what i want to do is to update the new leave balance as the total available balance...
[attachment=0]2.png[/attachment]
as u can see the attachment....
user will insert total days apply...
with the current balance is the total balance available for the staff....
the balance day is to calculate (current balance - total day apply)...
and i want to update the balance day as the current balance....
i mean the balance is carry forward for each user....
i already make the form here...
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Current Balance</label>
<input class="cf_inputbox validate-alphanum" maxlength="150" size="30" title="" id="text_20" name="currentbalance_id" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Applied</label>
<input class="cf_inputbox validate-number" maxlength="150" size="30" title="" id="text_9" name="applied_id" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Balance Day (s)</label>
<input class="cf_inputbox validate-alphanum" maxlength="150" size="30" title="" id="text_21" name="balance_id" type="text" />
</div>
<div class="cfclear"> </div>
</div>
how to make the current blance textbox to minus total days applied textbox....
and the value is showed at the balance day box......
and update is as the new current blance
thank you.......