# sendAndLoad(); - Sending Multiple Variables

**URL:** <https://forum.kirupa.com/t/sendandload-sending-multiple-variables/239602>\
**Category:** flash\
**Created:** [September 24, 2007, 4:01am UTC](https://forum.kirupa.com/t/sendandload-sending-multiple-variables/239602 "2007-09-24T04:01:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nineteen](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nineteen/32/2679_2.png) [@Nineteen](https://forum.kirupa.com/u/Nineteen)\
**Post date:** [September 24, 2007, 4:01am UTC](https://forum.kirupa.com/t/sendandload-sending-multiple-variables/239602/1 "2007-09-24T04:01:54Z")

</div>

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
<?php
    $xmlFileName = "../simple_edit.xml";
    $xmlDataFromFlash = file_get_contents("php://input");
     
    print $xmlDataFromFlash;
     
    $fp = fopen($xmlFileName, "w");
    fwrite($fp, $xmlDataFromFlash);
    fclose($fp);
?>

```
