Hello,
I am adding a weather forecast banner on my site. The provider is accuweather.com and they provide both Celsius and Fahrenheit option. Both of these have their own code to paste on a web page. I would like to include a link or a radio button for a visitor to choose from. I tried it with JavaScript and with PHP but it did not work for the reason that the weather code is not allowing itself to be inside JavaScript or PHP code.

Which language or method should I use to make this possible?

One option is to have two exactly similar pages having only one difference; the other one has Celsius code and the other one Fahrenheit, but this is not a smooth way to do it.