# I am royally stumped!

**URL:** <https://forum.kirupa.com/t/i-am-royally-stumped/307517>\
**Category:** Uncategorized\
**Created:** [April 5, 2010, 7:45am UTC](https://forum.kirupa.com/t/i-am-royally-stumped/307517 "2010-04-05T07:45:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![INDE](https://avatars.discourse-cdn.com/v4/letter/i/e480ec/32.png) [@INDE](https://forum.kirupa.com/u/INDE)\
**Post date:** [April 5, 2010, 7:45am UTC](https://forum.kirupa.com/t/i-am-royally-stumped/307517/1 "2010-04-05T07:45:45Z")

</div>

Hello, i believe this is pretty easy to solve but i cannot because i am a newb…

So here is the problem…

I call for some xml files from google and successfully display the data i need, there are similar and i want the user to be able to swap between cities and see the various weather data. The problem is that i get the thing to work when manually swapping the elements, everything is solid! But i cannot make it work via links.

```php
$requestAddress = array (

 'Athens'=>'http://www.google.com/ig/api?weather=Athens',
 'Thessaloniki'=>'http://www.google.com/ig/api?weather=Thessaloniki',
 'Heraklion'=>'http://www.google.com/ig/api?weather=Heraklion',
 'Patra'=>'http://www.google.com/ig/api?weather=Patra',
 'Komotini'=>'http://www.google.com/ig/api?weather=Komotini'
                            
 );     

    $xml_str = file_get_contents($requestAddress['Komotini']);

```

I suppose that the $xml\_str must somehow be affected here, but i cannot guess how. All i need is 5 links that when each one is clicked, makes the $requestAddress to change accordingly!

Any help would be appreciated 🙂 thanks !
