# Form Flash + PHP

**URL:** <https://forum.kirupa.com/t/form-flash-php/242943>\
**Category:** flash\
**Created:** [October 31, 2007, 9:37pm UTC](https://forum.kirupa.com/t/form-flash-php/242943 "2007-10-31T21:37:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![esferaweb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esferaweb/32/2104_2.png) [@esferaweb](https://forum.kirupa.com/u/esferaweb)\
**Post date:** [October 31, 2007, 9:37pm UTC](https://forum.kirupa.com/t/form-flash-php/242943/1 "2007-10-31T21:37:54Z")

</div>

Hi,

i try to make a form using flash, here´s the code:

[AS]  
loadVarsEmail = new LoadVars();

loadVarsEmail.onLoad = function() {  
gotoAndStop(“status”);  
if(this.status) { campo\_status.text = “Ok!”; }  
else { campo\_status.text = “Not okr”; }  
}  
enviar.onRelease = function() {  
loadVarsEmail.nome = campo\_nome.text;  
loadVarsEmail.email = campo\_email.text;  
loadVarsEmail.telefone = campo\_telefone.text;  
loadVarsEmail.sendAndLoad(“send.php”, loadVarsEmail, “POST”);  
gotoAndStop(“espera”);  
}  
[/AS]

send.php

```php

include_once('ultramail.php');

$nome = stripslashes(utf8_decode($_POST["nome"]));
$email = stripslashes(utf8_decode($_POST["email"]));
$telefone = stripslashes(utf8_decode($_POST["telefone"]));

$msg = $nome . $email . $telefone;
$msg = str_replace("
", "
", $msg);
$msg = stripslashes(utf8_decode($msg));

$para = "XXX@XXX.com";
$assunto = "Webform";
$cabecalho = "MIME-Version: 1.0
";
$cabecalho .= "Content-type: text/html; charset=iso-8859-1
";
$cabecalho .= "From: $nome <$email>";
$cabecalho .= "Para: DWMX 
";

UltraMail($para, $assunto, $msg , $cabecalho);

```

ultramail is the function of email of my server…

there is something wrong here?

thanks!
