# Getting variable from URL

**URL:** <https://forum.kirupa.com/t/getting-variable-from-url/92791>\
**Category:** Uncategorized\
**Created:** [October 21, 2003, 7:57pm UTC](https://forum.kirupa.com/t/getting-variable-from-url/92791 "2003-10-21T19:57:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nocturn](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Nocturn](https://forum.kirupa.com/u/Nocturn)\
**Post date:** [October 21, 2003, 7:57pm UTC](https://forum.kirupa.com/t/getting-variable-from-url/92791/1 "2003-10-21T19:57:53Z")

</div>

I have this sliding gallery swf that loads the thumbs from a xml file. But I would like it to load a different xml file depending on a variable in the browser URL. For example if viewpics.php?category=cars, I want the swf to load cars.xml

Thanks for any help 🅱
