Professional Documents
Culture Documents
php
$amount_output = $amount_input*1.0;
$amount_output = $amount_input*0.624514066;
$amount_output = $amount_input*0.588714763;
$amount_output = $amount_input*0.810307;
$amount_output = $amount_input*1.601244959;
}
if ($currency1="EUR" AND $currency2="EUR")
$amount_output = $amount_input*1.0;
$amount_output = $amount_input*0.942676548;
$amount_output = $amount_input*1.2975;
$amount_output = $amount_input*1.698615463;
$amount_output = $amount_input*1.060809248;
$amount_output = $amount_input*1.0;
}
if ($currency1="GBP" AND $currency2="USD")
$amount_output = $amount_input*1.3764;
$amount_output = $amount_input*1.234100162;
$amount_output = $amount_input*0.772200772;
$amount_output = $amount_input*0.726532984;
$amount_output = $amount_input*1.0;
?>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
To change this license header, choose License Headers in Project Properties.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>F/X Calculator</title>
</head>
<body>
<hr></hr>
<select name="currency1">
<option value="CAD">CAD</option>
<option value="EUR">EUR</option>
<option value="GBP">GBP</option>
<option value="USD">USD</option>
</select>
<select name="currency2">
<option value="CAD">CAD</option>
<option value="EUR">EUR</option>
<option value="GBP">GBP</option>
<option value="USD">USD</option>
</select>
</form>
</body>
</html>
OUTOUT: