# 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/260028>\
**Category:** Uncategorized\
**Created:** [May 11, 2008, 9:35pm UTC](https://forum.kirupa.com/t/sending-variables-from-multiple-movie-clips-to-a-single-php-script/260028 "2008-05-11T21:35:48Z")\
**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 11, 2008, 9:35pm UTC](https://forum.kirupa.com/t/sending-variables-from-multiple-movie-clips-to-a-single-php-script/260028/1 "2008-05-11T21:35:48Z")

</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?
