Jump to content

flash + php, não da :X


pimpz
 Share

Recommended Posts

boas eu estou a fazer um formulario em flash que envia um mail para o utilizador mas não está a funcionar muito bem.

o código que tenho em action script é:

alerta._visible = false;
enviar.onPress = function(){
if(nome != undefined and email != undefined and mensagem != undefined)
{
stop();
loadVariablesNum("email.php",0,"POST");
alerta.exibir="E-mail enviado!";
alerta._visible = true;
}
else
{
alerta.exibir = "Você deve preencher os campos corretamente!";
alerta._visible = true;
}
}
alerta.ok.onPress = function(){alerta._visible = false;}

e na pagina em php é :

<?php
$nome = utf8_decode(@$_POST["nome"]);
$email = utf8_decode(@$_POST["email"]);
$mensagem = utf8_decode(@$_POST["orcamento"]);
mail(" **********@gmail.com","Pedido de orcamento!",$mensagem."\nEnviado por:".$nome."\nE-mail:".$email)
?>

alguem sabe a razão de não enviar o e-mail?  😉

cumps

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.