Hey there,
Currently I am sending XML Data to a PHP Script that writes this data to an XML File.
What I would like to do is to be able to send a ‘User ID’ with the XML sendAndLoad Data so that the PHP Script will write the XML File into a folder based on the User ID.
How can I achieve this?
ActionScript Code:
[FONT=Courier New][LEFT]xmlData.[COLOR=#0000FF]sendAndLoad[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"php/delete.php"[/COLOR],xmlData,[COLOR=#FF0000]"POST"[/COLOR][COLOR=#000000])[/COLOR];
[/LEFT]
[/FONT]
<?php
$xmlFileName = "../simple_edit.xml";
$xmlDataFromFlash = file_get_contents("php://input");
print $xmlDataFromFlash;
$fp = fopen($xmlFileName, "w");
fwrite($fp, $xmlDataFromFlash);
fclose($fp);
?>