# Flash MX 2004 to PHP getting variables

**URL:** <https://forum.kirupa.com/t/flash-mx-2004-to-php-getting-variables/122268>\
**Category:** Uncategorized\
**Created:** [September 12, 2004, 5:56am UTC](https://forum.kirupa.com/t/flash-mx-2004-to-php-getting-variables/122268 "2004-09-12T05:56:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3rdeye](https://avatars.discourse-cdn.com/v4/letter/3/58f4c7/32.png) [@3rdeye](https://forum.kirupa.com/u/3rdeye)\
**Post date:** [September 12, 2004, 5:56am UTC](https://forum.kirupa.com/t/flash-mx-2004-to-php-getting-variables/122268/1 "2004-09-12T05:56:45Z")

</div>

I’m sending a series of integers from Flash using sendAndLoad, simmilar to:

infoSend.imageTotal = 3  
infoSend.imageNum1 = 435  
infoSend.imageNum2 = 45  
infoSend.imageNum3 = 9

infoSend.sendAndLoad(“http…”, infoLoad, “POST”);

my question is, how do I parse the data on the PHP side?

right now I have a while loop

while( $i \<= $imageTotal){  
[color=Red] $tempID = $imageNum[$i];[/color]  
$result = mysql\_query(‘SELECT \* FROM tbl\_mov WHERE movID=’.$tempID.’’,$dbcnx);  
$data = mysql\_fetch\_array($result);  
$str = $data[‘img\_thumb’];  
echo ‘&imgID=’.$i;  
echo ‘&imgLoc=’.$str;  
$i++;  
};

the line in red is the only one I know isn’t working… anyone know how to structure it?
