# loadVars send always return undefined

**URL:** <https://forum.kirupa.com/t/loadvars-send-always-return-undefined/286687>\
**Category:** flash\
**Created:** [April 19, 2009, 1:25pm UTC](https://forum.kirupa.com/t/loadvars-send-always-return-undefined/286687 "2009-04-19T13:25:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![malamut](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@malamut](https://forum.kirupa.com/u/malamut)\
**Post date:** [April 19, 2009, 1:25pm UTC](https://forum.kirupa.com/t/loadvars-send-always-return-undefined/286687/1 "2009-04-19T13:25:52Z")

</div>

Please help!  
I’ve searched all forums for solution and didn’t find any appropriate.  
Flash file:

```auto
s.onSoundComplete = function(){
      loadVars_out.songId = sa[cps].id;
      loadVars_out.send("incPlayedNumber.php", "_self", "POST");
      playNext();}

```

trace(loadVars\_out.songId); returns correct numbers, IDs, typeof(loadVars\_out.songId) is string.  
php file:

```auto
$songId = $_POST['songId'];
echo "$songId";

```

PHP is called correctly, but $sondId always undefined. Flash 8, player version is 10.  
Any suggestions?
