Currency Converter Exchange Online PHP Script

Currency Converter Exchange PHP Script Code

Here is the Online Currency Converter Exchange PHP Script get it free and modify it with your website or blog platform.

Complete code to use with online API inside tell exact international currency current rates.

            <h2>Currency Exchanger Online by Rankbp</h2>
            <div class="app">
                   <input id="value" type="text">
                   <label>From : </label>
                   <select id="from"></select>
                   <label>To :</label>
                   <select id="to"></select>
                   <button id="btn">Convert</button><br>
                <p id="result"></p>

	//Fetching the Code list
let currency_code = ["CAD","HKD","ISK","PHP","DKK","HUF","CZK","AUD","RON","SEK","IDR","INR","BRL","RUB","HRK","JPY","THB","CHF","SGD","PLN","BGN","TRY","CNY","NOK","NZD","ZAR","USD","MXN","ILS","GBP","KRW","MYR","EUR"];
let from = document.querySelector('#from');
let to = document.querySelector('#to');
let btn = document.querySelector('#btn');
let input = document.querySelector('#value')
let rslt = document.querySelector('#result');
for(let i = 0;i<currency_code.length;i++){
    let opt1 = document.createElement('option');
    opt1.value = currency_code[i];
    let opt2 = document.createElement('option');
    opt2.value = currency_code[i];

btn.addEventListener('click', function(){
    let from_value = from.value;
    let to_value = to.value;
    let url = ""+from_value;
    let val = input.value;
    .then(response =>response.json().then(data => {
        let rate = data.rates[to_value];
        console.log(val * rate)
        let res = val+" "+from_value+" = "+ (val * rate)+ " " + to_value;
        rslt.innerHTML = res;
    .catch(err =>{


What is an Online Currency Converter

A cash converter is the best online to change over any country’s money effectively
these days for the most part people groups are checking money on the web
and you can see many like that locales.

Assuming you need to make your own this sort of website then, at that point.
Usually, it is for facilitating others, yet we have two contents for online platforms.

And Hosting with the assistance of these contents you can make a lovely plan without any problem.

How to use Currency Exchanger PHP Code

This content is likewise accessible for cPanel or facilitating clients assuming you need to make a different site.

By facilitating simply adhere to the underneath directions and your site will be prepared.
Everybody is utilizing cash converter destinations for registering paces of monetary forms.

With different monetary forms since we know it is an awesome and smooth method of money discussion,
each financial specialist utilizes it for the most part.

Scroll to Top