# Loadvars.send to php problem

**URL:** <https://forum.kirupa.com/t/loadvars-send-to-php-problem/252371>\
**Category:** Uncategorized\
**Created:** [February 19, 2008, 3:29pm UTC](https://forum.kirupa.com/t/loadvars-send-to-php-problem/252371 "2008-02-19T15:29:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adamius](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Adamius](https://forum.kirupa.com/u/Adamius)\
**Post date:** [February 19, 2008, 3:29pm UTC](https://forum.kirupa.com/t/loadvars-send-to-php-problem/252371/1 "2008-02-19T15:29:09Z")

</div>

I’m having an issue trying to use the loadvars.send to send a string into php, everytime i try and run the script it comes up saying that the variable is an undefined index. I’m using something similar to this:

```auto

function sendData() {
var output:LoadVars = new LoadVars();
output.img = "hello"
output.send("../saveBitmap.php", "output", "POST");
}

```

and the php picking it up is

```php

$img = $_POST['img'];
echo $img;

```

anyone able to help out on this one???  
ads
