# myVars.send(); please help!

**URL:** <https://forum.kirupa.com/t/myvars-send-please-help/24492>\
**Category:** Uncategorized\
**Created:** [July 1, 2003, 12:45pm UTC](https://forum.kirupa.com/t/myvars-send-please-help/24492 "2003-07-01T12:45:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pete](https://forum.kirupa.com/u/pete)\
**Post date:** [July 1, 2003, 12:45pm UTC](https://forum.kirupa.com/t/myvars-send-please-help/24492/1 "2003-07-01T12:45:50Z")

</div>

hi guys

i would like to send variables via myVars.send();  
but i don’t want to open a new browser window so i did’nt write in the parameters method and target.

in my .fla file is written:

```auto
vars = new LoadVars();
vars.first = "i hope it works";
vars.send("send.php");

```

and in send.php:

```php
<?
$var = $_POST["first"];
$fp = fopen("txt.txt","w+");
fwrite($fp,$var);
fclose($fp);
?>

```

what do i make wrong??  
even the file has not created!!  
but when i add the parameter target and a new browser window opens , everything runs correct!!

please help  
thx

---

<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:** [July 1, 2003, 3:32pm UTC](https://forum.kirupa.com/t/myvars-send-please-help/24492/2 "2003-07-01T15:32:51Z")

</div>

if anybody is interested ( i dont’t think so ☹ )  
i found out in !! other forums !! that myVars.send() does not work without the parameters target and method.  
actually it should but a good work around is myVars.sendAndLoad(); wich does’nt open any browser window!!  
but the little drawback : it also laods variables from the script.
