# Variables Flash -\> PHP are empty

**URL:** <https://forum.kirupa.com/t/variables-flash-php-are-empty/328653>\
**Category:** flash\
**Created:** [June 3, 2012, 1:05pm UTC](https://forum.kirupa.com/t/variables-flash-php-are-empty/328653 "2012-06-03T13:05:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hendrik\_Jan](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@Hendrik\_Jan](https://forum.kirupa.com/u/Hendrik_Jan)\
**Post date:** [June 3, 2012, 1:05pm UTC](https://forum.kirupa.com/t/variables-flash-php-are-empty/328653/1 "2012-06-03T13:05:59Z")

</div>

Hello!

I’m having problems with the upload section of my website.  
People can enter the details of a song and upload it.  
When it is uploading, a file called appenlist will send the variables to my xmlplaylist.  
But when i check my playlist afterwards, the variables are empty.

This is my AS2 code

```auto

lvSend = new LoadVars();
lvSend.titel = tTitel.text;
lvSend.artist = tArtist.text;
lvSend.genre = tGenre.getValue();
lvSend.name = file.name;
lvSend.sendAndLoad("appendlist.php", lvReceive, "POST");

```

The added text in my xml playlist looks like this:

```auto

<listitem name='' - ''>
<stream name=''>
</listitem>

```

Instead of the variables it gives nothing.

My code for receiving the variables in php is this:

```auto

$titel = $_POST['titel'];
$artist = $_POST['artist'];
$genre = $_POST['genre'];
$name = $_POST['name'];

```

Why are my variables empty? Did something went wrong while passing the variables?

I’m using WampServer to host my site locally.

Any help is appreciated!  
Hendrik-Jan
