JohnDoe Posted April 6, 2012 Report Share Posted April 6, 2012 (edited) Am scris un script PHP pentru conversie valutara care foloseste un API al Google. In loc de RON sau USD se poate pune EUR sau orice alt fel de valuta.Demo: http://1582.tk/currencySursa: http://1582.tk/currency/currency.phpshttp://1582.tk/currency/img.png Edited April 9, 2012 by JohnDoe Quote Link to comment Share on other sites More sharing options...
JohnDoe Posted April 7, 2012 Author Report Share Posted April 7, 2012 Tocmai asta i-am sugerat si eu lui Vanish ca cica nu-i merge bine ala de pe Yahoo. Ma intreb daca de la el ai ideea. nu. Quote Link to comment Share on other sites More sharing options...
vanish Posted April 7, 2012 Report Share Posted April 7, 2012 sal, de ce ai folosit GET si nu POST? Quote Link to comment Share on other sites More sharing options...
JohnDoe Posted April 7, 2012 Author Report Share Posted April 7, 2012 (edited) sal, de ce ai folosit GET si nu POST?Nu este necesar POST pentru acest script. Edited April 7, 2012 by JohnDoe Quote Link to comment Share on other sites More sharing options...
vanish Posted April 7, 2012 Report Share Posted April 7, 2012 la sume din 5 cifre afiseaza asa:74?247.5943 ron*chiar si la 1000 imi da conversia tot asa Quote Link to comment Share on other sites More sharing options...
JohnDoe Posted April 7, 2012 Author Report Share Posted April 7, 2012 (edited) la sume din 5 cifre afiseaza asa:74?247.5943 ron*chiar si la 1000 imi da conversia tot asaAm facut update, uita-te la sursa.# am pus si limita de maxim 3 zecimale la rezultat ca sa fie mai usor de citit. Edited April 7, 2012 by JohnDoe Quote Link to comment Share on other sites More sharing options...
vanish Posted April 8, 2012 Report Share Posted April 8, 2012 este perfect acum, pentru cei care nu cunosc a inlocuit variabila de chemare a functiei $currency cu altceva, din cauza ordonarii alfanumerice corecte. Quote Link to comment Share on other sites More sharing options...
Robert1995 Posted April 8, 2012 Report Share Posted April 8, 2012 Ai putea sa il faci cu auto-complete (cand alegi valuta)jQuery UI - Autocomplete Demos & Documentation Quote Link to comment Share on other sites More sharing options...