# Sending Variables from Multiple Movie Clips to a single php script

**URL:** https://forum.kirupa.com/t/sending-variables-from-multiple-movie-clips-to-a-single-php-script/259906
**Category:** flash
**Created:** [May 10, 2008, 12:05am UTC](https://forum.kirupa.com/t/sending-variables-from-multiple-movie-clips-to-a-single-php-script/259906 "2008-05-10T00:05:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ThaJock](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@ThaJock](https://forum.kirupa.com/u/ThaJock)
#### Post date: [May 10, 2008, 12:05am UTC](https://forum.kirupa.com/t/sending-variables-from-multiple-movie-clips-to-a-single-php-script/259906/1 "2008-05-10T00:05:39Z")

</div>

I have 3 movie clips each containing it’s own variables. I want them all to be sent to PHP. The problem is that with the script I’m using it will only send variables contained in **a** specified movie clip. With the code placed on the submit button this is how I send each mc variable to php:

on (release) {  
mc\_name.loadVariables(“analysis.php”, “POST”);  
mc\_name.onData = function() {  
nextFrame();  
};

}

Is there any way to consolidate all 3 mc variables into 1 action script to be sent to PHP?
