# About the PHP-Flash Form

**URL:** <https://forum.kirupa.com/t/about-the-php-flash-form/244291>\
**Category:** programming\
**Created:** [November 15, 2007, 11:48pm UTC](https://forum.kirupa.com/t/about-the-php-flash-form/244291 "2007-11-15T23:48:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_BA](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@Diego\_BA](https://forum.kirupa.com/u/Diego_BA)\
**Post date:** [November 15, 2007, 11:48pm UTC](https://forum.kirupa.com/t/about-the-php-flash-form/244291/1 "2007-11-15T23:48:37Z")

</div>

The “[FONT=Arial][COLOR=#003366] **Flash** -Based[/COLOR][COLOR=#003366] Email Form Using PHP[/COLOR][/FONT]” do not work correctly…

After a few weeks i found the answer…

At the stage we have a MovieClip called “Form”; And inside it we have  
3 Dynamic TextFields with an specific Var Name for each one [and the var  
Name is not the TextField Name].

So, at Flash we have 3 TextFields:

TextFIeld2: the var name is: “name”  
TextField3: the var name is: “email”  
TextField4: the var name is: “message”

Then our php script must to call them, with the Same Var Name:  
The function to call the flash´s vars is [COLOR=deepskyblue]$\_POST[/COLOR][COLOR=blue][[/COLOR][COLOR=red]‘var\_name’[/COLOR][COLOR=blue]][/COLOR];

So, to call them we must to respect the var´s name like this:

$my\_var1= $\_POST[‘name’];  
$my\_var2= $\_POST[‘email’];  
$my\_var3= $\_POST[‘message’];

Otherwise, the php vars will not have any content…

* * *

Besides you can add more TextFields. Usually we must to.

At Flash:

TextField1: var name: “my\_flash\_var1”  
TextField2: var name: “my\_flash\_var2”  
TextField3: var name: “my\_flash\_var3”  
TextField4: var name: “my\_flash\_var4”  
TextField5: var name: “my\_flash\_var5”  
TextField6: var name: “my\_flash\_var6”  
TextField7: var name: “my\_flash\_var7”

Then, the php script:

$my\_var1= $\_POST[‘my\_flash\_var1’];  
$my\_var2= $\_POST[‘my\_flash\_var2’];  
$my\_var3= $\_POST[‘my\_flash\_var3’];  
$my\_var4= $\_POST[‘my\_flash\_var4’];  
$my\_var5= $\_POST[‘my\_flash\_var5’];  
$my\_var6= $\_POST[‘my\_flash\_var6’];  
$my\_var7= $\_POST[‘my\_flash\_var7’];

/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/  
I hope this Help!
