can anyone please tell how to write a simple php code that will convert dollar, euro and yen to pounds. im using a form that will prompt customers to enter a amount they want to convert. thanks in advance
achiman
0
Junior Poster in Training
Recommended Answers
Jump to PostI have made a use at your own risk function that will convert a number of currencies. The reason why I say use at your own risk is that it uses another website for the conversions. First there is the convert function which is as follows:
function …
Jump to PostIt would be simpler and less error prone to use an actual currency conversion API.
Here is a listing:
http://www.programmableweb.com/apitag/?q=currency
Jump to PostYou need to connect an
api
feed in order to fill those'"'
Jump to Post@PatrikIden
OK, how wold i do that. Do you have an example of how that code wold look like?
No, but here are couple of examples how it works in php:
The first example is similiar to the example above which used xml:
http://www.white-hat-web-design.co.uk/blog/php-currency-conversion-exchange-rates-xml/
The …
All 13 Replies
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
G&G Designing
commented:
Nice reply!
+3
kinabj
0
Newbie Poster
kinabj
0
Newbie Poster
digital-ether
399
Nearly a Posting Virtuoso
Team Colleague
mike-bd
0
Newbie Poster
gamlastan
0
Newbie Poster
jittalukdar
0
Newbie Poster
PatrikIden
0
Newbie Poster
LastMitch
PatrikIden
0
Newbie Poster
LastMitch
chrislim2888
0
Newbie Poster
PatrikIden
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.