# How to get URL variables

**URL:** <https://forum.kirupa.com/t/how-to-get-url-variables/247015>\
**Category:** Uncategorized\
**Created:** [December 17, 2007, 7:01pm UTC](https://forum.kirupa.com/t/how-to-get-url-variables/247015 "2007-12-17T19:01:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SquirtGun](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SquirtGun](https://forum.kirupa.com/u/SquirtGun)\
**Post date:** [December 17, 2007, 7:01pm UTC](https://forum.kirupa.com/t/how-to-get-url-variables/247015/1 "2007-12-17T19:01:54Z")

</div>

Hello:

I need some help accessing the variables in a url string when my page is loaded.

here is any example of the url.

[www.mysite.com/index.php?myVar=picture1.jpg](http://www.mysite.com/index.php?myVar=picture1.jpg)

how do I access myVar ??

I was trying to use root.[COLOR=#000080]loaderInfo[/COLOR].[COLOR=#000080]parameters[/COLOR].[COLOR=#000080]myVar[/COLOR]; But it doesn’t seem to be working at all.

thanks for any help.

~squirt
