# sendAndLoad issue w/ array via POST in PHP?

**URL:** <https://forum.kirupa.com/t/sendandload-issue-w-array-via-post-in-php/223431>\
**Category:** flash\
**Created:** [April 22, 2007, 6:43pm UTC](https://forum.kirupa.com/t/sendandload-issue-w-array-via-post-in-php/223431 "2007-04-22T18:43:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ironchefmoto](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@ironchefmoto](https://forum.kirupa.com/u/ironchefmoto)\
**Post date:** [April 22, 2007, 6:43pm UTC](https://forum.kirupa.com/t/sendandload-issue-w-array-via-post-in-php/223431/1 "2007-04-22T18:43:37Z")

</div>

I’m sending an array of 20 items to a PHP script. Here’s the sendAndLoad call:

```auto
rankedSubmitBtn.onRelease = rankedSubmitBtn.onReleaseOutside = function():Void
{
    trace(":: rankedSendVars Sent ::");
    rankedSendVars.sendAndLoad("http://somewebsite.com/somefolder/somescript.php?rank_config_id=" + configID + "&rank_data=" + rankedData + "&nocache=" + new Date().getTime(), rankedRecVars, "POST");
}

```

The array data – rankedData – gets converted to a comma delimited string. The PHP script processes the send vars like so:

```auto
$submitID = $_POST["rank_config_id"];
$submitRawData = $_POST["rank_data"];
$submitData = explode(",", $submitRawData);
$submitDataLen = count($submitData);

```

The only way I can get the $\_POST[“rank\_data”] to work is if I process it as a REQUEST vs. a POST variable:

```auto
$submitID = $_POST["rank_config_id"];
$submitRawData = $_REQUEST["rank_data"];
$submitData = explode(",", $submitRawData);
$submitDataLen = count($submitData);

```

Why is that? Why is the $\_POST[“rank\_data”] undefined by the PHP? I know the SWF is sending it. If anyone can chime in on this, I’d appreciate it, as I want to make sure that I’m setting up this PHP and Actionscript sendAndLoad properly.

Thanks,  
IronChefMorimoto
