# Multipage Flash/PHP form?

**URL:** <https://forum.kirupa.com/t/multipage-flash-php-form/62932>\
**Category:** programming\
**Created:** [September 1, 2004, 6:16pm UTC](https://forum.kirupa.com/t/multipage-flash-php-form/62932 "2004-09-01T18:16:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![virtualrush](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@virtualrush](https://forum.kirupa.com/u/virtualrush)\
**Post date:** [September 1, 2004, 6:16pm UTC](https://forum.kirupa.com/t/multipage-flash-php-form/62932/1 "2004-09-01T18:16:25Z")

</div>

Hey, jst came upon your flash community and wondered if you could help me out on this?

I was wondering, from the idea ov gathering all the variables from a movie and sending them to php script. would it be possible to place different checkboxes on different frames of a movie (thus creating a multipage form) then be able to get them to send to a php script?

eg. a tabbed flash form, that splits the questions into different pages(frames)

Am i crazy?(probably)… do any of you understand what im blabering on about?!!

any help would b great, thanks alot

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 1, 2004, 6:24pm UTC](https://forum.kirupa.com/t/multipage-flash-php-form/62932/2 "2004-09-01T18:24:23Z")

</div>

Howdy… 🙂

No, you are not crazy… 🙂

What you need to do is no different from the one page form…  
You just need to make multiple movieClips for each tabs and have your SEND button collect all the values from each movieClips and use LoadVars() object to send out the data to the server… I think that’s the only difference… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 1, 2004, 6:32pm UTC](https://forum.kirupa.com/t/multipage-flash-php-form/62932/3 "2004-09-01T18:32:17Z")

</div>

thank you sir! (and for confirming my sanity!!)

is this what u would put on the send button, if i had a 2 movies (1. drinks, 2. appetizers):

on (release) {

drinks.LoadVars(“emailform.php”, “POST”);  
appetizers.LoadVars(“emailform.php”, “POST”);

}

thanks, is this corect? why shud i nt use loadVariables instead?

cheers.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 1, 2004, 6:37pm UTC](https://forum.kirupa.com/t/multipage-flash-php-form/62932/4 "2004-09-01T18:37:49Z")

</div>

More along this line… Assign everything to the LoadVars instance before you send the data from each movieClips…  
(It sounds like you don’t know how LoadVars() works… I suggest you go over the Flash manual before you do this… :))

```php

on (release)
{
	data_lv = new LoadVars();
	data_lv.drinksData1 = drinks.someData1;
	data_lv.drinksData2 = drinks.someData2;
	data_lv.drinksData3 = drinks.someData3;
	data_lv.appetizersData1 = appetizers.someData1;
	data_lv.appetizersData2 = appetizers.someData2;
	data_lv.appetizersData3 = appetizers.someData3;
	data_lv.appetizersData4 = appetizers.someData4;
	data_lv.onLoad = function (ok)
	{
		if (ok)
		{
			// success
		}
		else
		{
			// failure
		}
	}
	data_lv.sendAndLoad("emailform.php", data_lv, "POST");
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 1, 2004, 7:29pm UTC](https://forum.kirupa.com/t/multipage-flash-php-form/62932/5 "2004-09-01T19:29:29Z")

</div>

thanx. yr right, gt nooo idea!

i think i know wot u might b going on about with these lines “[color=#0000bb]data\_lv[/color][color=#007700].[/color][color=#0000bb]drinksData1 [/color][color=#007700]= [/color][color=#0000bb]drinks[/color][color=#007700].[/color][color=#0000bb]someData1”[/color]  
[color=#0000bb][/color]  
[color=#0000bb]data\_lv - [/color][color=black]is the loadvars object yr calling[/color]  
[color=#0000bb]drinksData1 - [/color][color=black]is a variable, wich u assigned to it the value from…[/color]  
[color=#0000bb]drinks - [color=black]the movie clips…[/color][/color]  
[color=#0000bb][color=#0000bb]someData1 - [/color][/color][color=black] checkbox instance[/color]

is this right or have i got it all wrong?!

plus how do you transfer the value of the checkbox into the php script?

e.g in html:  
\<input name=“menu[]” type=“checkbox” value=“bread”\>

thanks alot for your time
