Sending vars to a php-file problems?

Hi there,

I don’t get this. I am using the follwing actionscript to send 2 vars to a php file:


getURL ("file.php?name1=" + name1+ "&name2=" +name2, "_self", "POST");

.but when i test it local. I see the following:
“file.php?name1=david&name2=posh?M%5FloveMatch=%5Btype+Function%5D&calculateScore=%5Btype+Function%5D&your%5Fname%5Fstatic=dfjkawef&your%5Floveone%5Fstatic=oiaSDV&score=78&scoretext=78%25&name1=david&name2=posh”

and all i wanna get is:

“name1=david&name2=posh”

Any thoughts,

Keitai

Try using LoadVars Instead.

“name1=david&name2=posh”

The way you above is accomplished by using the ‘GET’ method rather than ‘POST’.

lv = new LoadVars();
lv.name1 = name1
lv.name2 = name2
lv.send("file.php", "_self", "GET");