# Help passing variables!

**URL:** https://forum.kirupa.com/t/help-passing-variables/238589
**Category:** Uncategorized
**Created:** [September 12, 2007, 9:34pm UTC](https://forum.kirupa.com/t/help-passing-variables/238589 "2007-09-12T21:34:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mjancosek](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mjancosek](https://forum.kirupa.com/u/mjancosek)
#### Post date: [September 12, 2007, 9:34pm UTC](https://forum.kirupa.com/t/help-passing-variables/238589/1 "2007-09-12T21:34:09Z")

</div>

I have bought a quick template which has a flash header. On this header there is a search bar which I am trying to pass the variable from the text box to result.html page which will have javascript running. I am at a total stand still.

Here is the problem:

Scene1  
layerName: go\_  
_ **I have this script.** _  
on (release) {

```
getURL("result.html?search="+ searchTxt "POST");

```

}

_**Symbol3 (go button)**_  
on (rollOver) {  
gotoAndPlay(“s1”);  
}  
on (rollOut) {  
gotoAndPlay(“s2”);  
}

_**Then search2 (movieclip) is where I have my text box  
defined as:**_  
Text Type = Input text  
Instance name = searchTxt  
Var = search

**Now when I try this it will give me this message in the URL**  
result.html?search=.  
\*\*or  
\*\*result.html?search=notdefined.

How do I get what was typed into the text box to pass in the URL?
