# loadVars.send question

**URL:** <https://forum.kirupa.com/t/loadvars-send-question/17539>\
**Category:** programming\
**Created:** [April 6, 2003, 7:28pm UTC](https://forum.kirupa.com/t/loadvars-send-question/17539 "2003-04-06T19:28:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mobcar\_media](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@mobcar\_media](https://forum.kirupa.com/u/mobcar_media)\
**Post date:** [April 6, 2003, 7:28pm UTC](https://forum.kirupa.com/t/loadvars-send-question/17539/1 "2003-04-06T19:28:12Z")

</div>

Another slightly related variable question:

I am attempting to store data from a flash timeline into a database.

Now, if I use getURL in my AS, the PHP script works just fine and the data is saved. But, I don’t want to pop up a browser window, I just want it to save. So, I created another loadVars object and tried using loadVars.send… but, with this method, no data is ever sent.

when I send via getURL, this is what I send:

[AS]getURL(“[http://www.mobcar.com/rbnghof.php?firstName="+firstName+"&lastName="+lastName+"&bandName=](http://www.mobcar.com/rbnghof.php?firstName=%22+firstName+%22&lastName=%22+lastName+%22&bandName=)”+rbngFinal);[/AS]

When I send via loadvars, this is what I send:

[AS]sendData.send(“[http://www.mobcar.com/rbnghof.php?firstName="+firstName+"&lastName="+lastName+"&bandName=](http://www.mobcar.com/rbnghof.php?firstName=%22+firstName+%22&lastName=%22+lastName+%22&bandName=)”+rbngFinal, “\_self”, “GET”);[/AS]

I’m using \_self, hoping that if there is an error, it will put it up on the browser. No luck.

Kind of frustrating. I figure if it works one way it should work the other… Especially if the PHP script works and is saving data to mySQL properly using getURL.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 6, 2003, 8:12pm UTC](https://forum.kirupa.com/t/loadvars-send-question/17539/2 "2003-04-06T20:12:43Z")

</div>

i think you can simply use

```auto
sendData.send("http://www.mobcar.com/rbnghof.php?", "GET");

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 6, 2003, 8:49pm UTC](https://forum.kirupa.com/t/loadvars-send-question/17539/3 "2003-04-06T20:49:53Z")

</div>

Yeah that worked fine. After poring through my code I found that I had a typo when declaring the new loadVars() object, and that’s why it wasn’t working.

But… here’s the thing. Although it’s inserting the data into mySQL, it’s also spawning a new browser window at the same time. I don’t want to so that. I just want to post the data and go on to the next thing on the timeline.

Is there any way to send data so that it is transparent to the user?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 6, 2003, 8:51pm UTC](https://forum.kirupa.com/t/loadvars-send-question/17539/4 "2003-04-06T20:51:39Z")

</div>

i think you should be fine if you use the line i gave you… im not sure though… if not, try using .load… or sendAndLoad… or even loadVariables… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2003, 2:45pm UTC](https://forum.kirupa.com/t/loadvars-send-question/17539/5 "2003-04-07T14:45:07Z")

</div>

```auto

sendData.load("http://www.mobcar.com/rbnghof.php?firstName="+firstName+"&lastName="+lastName+"&bandName="+rbngFinal);

```

and in the PHP use $\_GET[‘varname’];
