# Passing variables from frame to frame

**URL:** <https://forum.kirupa.com/t/passing-variables-from-frame-to-frame/186971>\
**Category:** Uncategorized\
**Created:** [April 25, 2006, 6:26pm UTC](https://forum.kirupa.com/t/passing-variables-from-frame-to-frame/186971 "2006-04-25T18:26:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [April 25, 2006, 6:26pm UTC](https://forum.kirupa.com/t/passing-variables-from-frame-to-frame/186971/1 "2006-04-25T18:26:22Z")

</div>

Hello everyone:

I have a submit section on my flash movie. [http://www.lolomedia.com/menu6.html](http://www.lolomedia.com/menu6.html)

I also have 3 frames in this movie.

Frame 1:  
**Yes** or **No** radio button  
**Comments** : text field

**[COLOR=Red]next[/COLOR]**

Frame 2:  
**[COLOR=Black]Yes[/COLOR]** or **No** radio button  
**Comments** : text field

\*\*[COLOR=Red]next

[/COLOR]\*\*Frame 3:  
**Yes** or **No** radio button  
**Comments** : text field

**[COLOR=Red]submit[/COLOR]**

I need to pass these values and send it to php.

How can i pass these variables from frame to frame and be able to submit all on Frame 3

Please help… this is my last piece on this project and then I’m finally done!

:ub:

this is my .fla if you need to download it  
[http://www.lolomedia.com/menu6.fla](http://www.lolomedia.com/menu6.fla)

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 25, 2006, 6:30pm UTC](https://forum.kirupa.com/t/passing-variables-from-frame-to-frame/186971/2 "2006-04-25T18:30:57Z")

</div>

easy, dont use frames. Or you can have the code in an actions layer so that all the sections are covered by one keyframe. In that code can be some variables you populate then send all at once:)

---

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [April 25, 2006, 6:34pm UTC](https://forum.kirupa.com/t/passing-variables-from-frame-to-frame/186971/3 "2006-04-25T18:34:30Z")

</div>

Thanks dude for the quick reply.

Could you please ellaborate on your feedback?  
What do you mean by all in actions?..  
Create different mc’s within a frame or something?  
Could you show me an example or something?

Thanks.

by the way when i submit this form… only I get frame 3 results.

this is what i have on my code on frame 3

```auto

submitBtn.onRelease=function(){
      onSubmit();
}

function onSubmit() {
    
    Smessage1 = Smessage1.text; 
    gender1 = genderGroup1.getValue(); 
    Smessage2 = Smessage2.text; 
    gender2 = genderGroup2.getValue(); 
    Smessage3 = Smessage3.text; 
    gender3 = genderGroup3.getValue();
    loadVariables("radio1.php",this,"POST");
    loadMovieNum("goodbye.swf",40);
}

```

but again i have nothing on frame 1 or 2… i’m a little confused on how or where to put these values so i can send to my php.

thanks for your response! :thumb2:
