# Getting a value of the URL to open XML file

**URL:** <https://forum.kirupa.com/t/getting-a-value-of-the-url-to-open-xml-file/214251>\
**Category:** flash\
**Created:** [January 26, 2007, 6:01pm UTC](https://forum.kirupa.com/t/getting-a-value-of-the-url-to-open-xml-file/214251 "2007-01-26T18:01:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arquenvaron](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@Arquenvaron](https://forum.kirupa.com/u/Arquenvaron)\
**Post date:** [January 26, 2007, 6:01pm UTC](https://forum.kirupa.com/t/getting-a-value-of-the-url-to-open-xml-file/214251/1 "2007-01-26T18:01:41Z")

</div>

Hello guys… i’m a little worried about this work that i have to do…

I have a PHP system that generates some XML files for gallerys… each gallery has an XML file… like… the gallery 1 has the file gallery1.xml.

Ok…

I’ll have an index… with all the gallerys to choose, made in PHP… but… when you enter in a gallery… it will have an SWF that open the XML file of that gallery…

like…

i click on gallery one… and my URL address will be…

[http://localhost/mysite/viewGallery?gallery\_id=1](http://localhost/mysite/viewGallery?gallery_id=1) (or any other number)

i want to know what i need to do for my SWF file read this URL variable (gallery\_id) and open the right XML file…

sorry for my bad english…  
and sorry if you don’t undertand what i need ☹
