# Building getUrl querystrings w/variables

**URL:** <https://forum.kirupa.com/t/building-geturl-querystrings-w-variables/71328>\
**Category:** flash\
**Created:** [November 23, 2004, 4:39pm UTC](https://forum.kirupa.com/t/building-geturl-querystrings-w-variables/71328 "2004-11-23T16:39:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xonlocust](https://avatars.discourse-cdn.com/v4/letter/x/439d5e/32.png) [@xonlocust](https://forum.kirupa.com/u/xonlocust)\
**Post date:** [November 23, 2004, 4:39pm UTC](https://forum.kirupa.com/t/building-geturl-querystrings-w-variables/71328/1 "2004-11-23T16:39:45Z")

</div>

hello all-  
i’m running into what seems to be a simple syntax issue i hope someone can help with. i have a querystring passing a var to my .swf. this var is getting into the movie fine and i can output it in a text box, but i’m having problems “rebuilding it” into my new getUrl. here’s what i have:

```auto

on (release) {
getURL("index.cfm?searchtype=" & _root.searchtype & "");
}

```

what i’m looking to see interpreted by the browser is:

```auto

on (release) {
getURL("index.cfm?searchtype=OH");
}

```

(where the value of \_root.searchtype is “OH”)

the action i’m seeing now is the file going to [http://mysite.com/0 (where the swf is in the root directory of the site - when i want to see [url=“http://mysite.com/index.cfm?searchtype=OH”]http://mysite.com/index.cfm?searchtype=OH](http://mysite.com/0))

thanks much in advance,  
nk
