This is a discussion on Embedded Currency Conversion within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Can anyone please advise if it is possible to embed some sort of code into a non-dynamic site (XHTML ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Can anyone please advise if it is possible to embed some sort of code into a non-dynamic site (XHTML and CSS) to enable an amount in US $ to be automatically displayed in another currency alongside the dollar price? I've seen sites that offer free online exchange rate calculators (eg. XE.com - The World's Favorite Currency and Foreign Exchange Site) that can be embedded on my site but the user needs to enter amounts and currencies etc., which I don't want. I just want the US dollar price on my HTML page to be used as the input amount, the output currency would be predetermined (i.e. not user selectable) and then a field to display the returned converted amount. Is this possible without setting up a full database driven site as I'm only just getting my head around CSS & HTML and have no PHP experience other than recently helping to set up a Zen-Cart site for a relative. I noticed that Zen-Cart uses some sort of open-source online exchange rate service and it got me wondering. Many thanks in advance. Last edited by Alkazar : 08-24-2007 at 08:32 AM. |
|
#2
| |||
| |||
| Hi Alkazar, I don't think you need a fully database driven site to convert currency and show it in your HTML site.. As seen in some sites, they just spider through other sites which have the currency conversion modules and get the conversion details from them... So what you need a PHP Page to do the spidering or grabbing functionality... Attached is a PHP Script which will take the INPUT & OUTPUT Currencies & the Input Currency Value and get the converted output currency Value from finance.yahoo.com PHP Code: Thanks Shiva...
__________________ The real voyage of discovery consists not in seeking new landscapes, but in having new eyes |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Currency format | Kirubhananth | ASP and ASP.NET Programming | 2 | 03-13-2008 02:26 AM |
| What is embedded style? How to link? | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 09-12-2007 12:25 AM |
| How to Create an Excel Macro that converts currency in numbers into words? | itbarota | VB.NET Programming | 2 | 08-08-2007 05:23 AM |
| embedded webserver | theone | HTML, CSS and Javascript Coding Techniques | 0 | 07-30-2007 05:17 AM |
| How to Create word Macro that converts currency in numbers into words? | itbarota | VB.NET Programming | 1 | 07-25-2007 03:03 AM |
Our Partners |