[insert_php]
echo ‘
';
if(isset($_POST['submit'])) {
echo '
';
$start_div = $_POST['start_div'];
$div_increase = $_POST['div_increase']/100;
$years = $_POST['years'];
$x = 1;
setlocale(LC_MONETARY, 'en_US');
/* Print out what was entered
echo "
Starting Dividends | Annual Dividend Increase | Number of Years |
---|---|---|
" . money_format('%#20.0n', $start_div) . " | " . ($div_increase*100) . "% | $years |
";
*/
/* Print table header */
echo "
Year | Dividends (Yearly) | Dividends (Monthly) | Dividends (Daily) | Dividends (Hourly) |
---|---|---|---|---|
$x | " . money_format('%#20.0n', $start_div) . " | " . money_format('%#20.0n', ($start_div/12)) . " | " . money_format('%#20.0n', ($start_div/260)) . " | " . money_format('%#20.2n', ($start_div/2080)) . " |
";
}
else {
echo '
';
}
[/insert_php]