Convert from USD (original Amount: $39.99) to any other currency
Total Price (converted) $ 39.99 in USD

Current Language: United States
US (USD)
UK (Euro)
Canada (CAD)
Australia (AUD)
Italia, Lire (EUR)
Germany (EUR)
France (EUR)
Switzerland Franc (CHF)
Japan, Yen (JPY)
China, Yuan Renminbi (CNY)
 

Here is the code that makes this work


<?php

// Include the php functions
include('./functions.php');

// Set the default amount
$amount '39.99';

/*
    ****   SPECIAL NOTES ON WHAT YOU NEED  
    
    
    There is an external php page that is needed to do the ajax request, and pass back the returned values,
    Make sure you get it for this to work.  Its called convert_currency.php
    
    You need the css style sheet or use your own.
    style.css
    
    Make sure you get the ajax.js, that does all the magic on getting the values and returning the result 

*/
?>
<html>
<head>
<script language="javascript" type="text/javascript" src="ajax.js"></script>
<link href="style.css" rel="stylesheet" type="text/css">

<title>Change Currency</title>
</head>
<body>
<div class="greyBox">
    <div>Convert from USD (original Amount: $<span id="original_amount"><?= $amount?></span>) to any other currency</div>
    <div>Total Price (converted) $<span id="display_amount">
        <?= $amount?>
        </span> in <span id="display_currency">USD</span></div>
    <br>
    <div>Current Language: <span id="current_flag"><img src="./flags/us.png"></span> <span id="current_language">United States</span> <a href="javascript: void(0);"  onClick="toggle_currency_list();" class="down_arrow"><span id="downarrow_close"><img src="downArrow.jpg" border="0"></span></a></div>
    <div id="currency_list">
        <?= drawCountries($amount); ?>
    </div>
</div>
<hr>
<h2>Here is the code that makes this work</h2>
<br>
<?= show_source('index.php'); ?>
</body>
</html>
1