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
var lvSend:LoadVars=new LoadVars();
var lvReceive:LoadVars=new LoadVars();
lvSend.titel = tTitel.text;
lvSend.artiest = tArtiest.text;
lvSend.genre = tGenre.getValue();
lvSend.naam = file.name;
lvSend.sendAndLoad("appendlist.php", lvReceive, "POST")
The added text in my xml playlist looks like this:
<listitem name='' - ''>
Instead of the variables it gives nothing.
My code for receiving the variables in php is this:
$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? When i use tha trace() command, my variables are shown, so i have no idea where it goes wrong.
I'm using WampServer to host my site locally.
Any help is appreciated!