Help passing variables!

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?