\n" . "\n" . "\n" . "\n\n" ; for ( $icol = 1 ; $icol <= $form_cols ; $icol++ ) { $out .= "\n" ; } $out .= "
$page_title
$form_currency_fr 1.00 = $form_currency_to " . number_format($form_currency_to_rate, 2) . "
\n" . "\n" ; for ( $irow = 1 ; $irow <= $form_rows ; $irow++ ) { // calculate zero-based index ((row + ((column -1) * total rows)) - 1) $ix = ($irow + (($icol - 1) * $form_rows)) - 1 ; // calculate "from" value $fval = number_format($form_val_start + ($ix * $form_val_incr), 2); // calculate "to" value $tval = number_format($fval * $form_currency_to_rate, 2); $out .= "\n" ; } $out .= "
$form_currency_fr$form_currency_to
$fval$tval
\n" ; echo $out ; exit(); } ?>
 

 
Currency From
Currency To
Columns  
Rows  
Start Value If 0, increment value is used
Increment Value  
Font Size Determines how much can print on 1 page
   
See forum for download information.

require_once ( $_inc_root . "body_bottom.php" ); /* This code was developed by Gerry Danen and may be used to illustrate certain PHP coding techniques, in particular dealing with loops from input provided on forms. You may use this code as long as you do not sell it, or incorporate it in a commercial product. For commercial rights, contact Gerry Danen at www.danen.org. */ ?>