Post Variable to php script : I am able to post a string to a php script by sending it as xmlhttp data. 
What I am really trying to do is reading that data which I am sending now as a hardcoded string, from another variable. 

example: 
what I have now is the following code: 

    xmlhttp.open("POST", "test.php", true);
    xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    xmlhttp.send("name=testname");
    
this post requests executes well and the php script receives the content of the name parameter ($stringData = $_POST["name"]);

I am trying to replace the 'testname' string with dynamic content from a variable. So 

    VARIABLE= "someContentNotHardCoded";
    xmlhttp.send("name="+ VARIABLE);

but this doesn't seem to work. Is it possible what I am trying to do here, to append/replace the 'testname' string with dynamic content loaded from a variable? 


