# myVars.send();

**URL:** <https://forum.kirupa.com/t/myvars-send/24431>\
**Category:** flash\
**Created:** [June 30, 2003, 7:46pm UTC](https://forum.kirupa.com/t/myvars-send/24431 "2003-06-30T19:46:05Z")\
**Posts on this page:** 4\
**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:** [June 30, 2003, 7:46pm UTC](https://forum.kirupa.com/t/myvars-send/24431/1 "2003-06-30T19:46:05Z")

</div>

hi guys

i have a problem:  
i wanted to send the variables with myvars.send();  
but i did not want to open a new window so i deleted the parameters target and method.  
like this:  
myvars.send(“send.php”);  
when i did that the variables were not send

but why

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:** [June 30, 2003, 7:51pm UTC](https://forum.kirupa.com/t/myvars-send/24431/2 "2003-06-30T19:51:00Z")

</div>

make sure your php file starts like this:

```php
<?php
myVar = $_POST['myVar'];
myVar2 = $_POST['myVar2'];
.....

```

note that the default method used with LoadVars.send() is “POST” and not “GET”… that might have caused your problem 🙂

---

<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:** [June 30, 2003, 7:52pm UTC](https://forum.kirupa.com/t/myvars-send/24431/3 "2003-06-30T19:52:29Z")

</div>

thanx

but i already knew that 🙂  
but it does’nt work.

no i don’t think ☹

in my “send.php” is written:  
\<?php  
$f = $\_POST[“first”];  
$fp = fopen(“txt.txt”,“w+”);  
fwrite($fp,$f);  
?\>

but the file txt.txt has not been created  
it was created when i entered a target in myVars.send();

---

<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:** [June 30, 2003, 8:03pm UTC](https://forum.kirupa.com/t/myvars-send/24431/4 "2003-06-30T20:03:53Z")

</div>

sorry… i don’t see why it isn’t working
