im working on leave management system...
and i use this code for counting the leave...
and here is the email msg show
the total balance available is not showing ;(
is my code wrong?using cfv3...
and i use this code for counting the leave...
<?php
$mainframe =& JFactory::getApplication();
;
$balance = JRequest::getString('L_totalavailable_id', '', 'post');
$balance = 15;
$mainframe->enqueuemessage('Total Leave Balance:'.print_r($balance, true).'<hr />');
$totaldays = JRequest::getString('L_totaldaysapplied_id', '', 'post');
$mainframe->enqueuemessage('Total Leave Applied: '.print_r($totaldays, true).'<hr />');
$available = abs($balance - $totaldays);
$mainframe->enqueuemessage('Current Balance: '.print_r($available, true).'<hr />');
JRequest::setVar('L_currentbalance_id', $available);
?>
and here is the email msg show
the total balance available is not showing ;(
is my code wrong?using cfv3...