# Loosing data to pho

**URL:** https://forum.kirupa.com/t/loosing-data-to-pho/237688
**Category:** flash
**Created:** [September 2, 2007, 5:14pm UTC](https://forum.kirupa.com/t/loosing-data-to-pho/237688 "2007-09-02T17:14:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Letharion](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/letharion/32/3959_2.png) [@Letharion](https://forum.kirupa.com/u/Letharion)
#### Post date: [September 2, 2007, 5:14pm UTC](https://forum.kirupa.com/t/loosing-data-to-pho/237688/1 "2007-09-02T17:14:00Z")

</div>

I’m trying to send some data to a php script, with this code:

```auto
URLVariables.articles = new Array();
for (var i:int = 0; i < itsNumber; i++) {
    URLVariables.articles* = itsPart*.getLabel();
    removeChild(itsPart*);
}
URLVariables.Number = new Date();

UrlRequest.data = URLVariables;
t.obj(URLVariables);
Sender.load(UrlRequest);

```

The for loop adds everything correctly, I can see that when I trace it (t.obj), but the PHP script only seems to receive the LAST element of my array. If there’s more than 1, all before that last are just lost.

Is this code “legal”? Or am I doing something wrong?
