Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Fernando_2009

Formulario de conto em flash + Php

Recommended Posts

Boa Tarde, Tenho um formulario de contato em flash, mais quando vou enviar a mesagem não está chegando para o email.

 

Php

<?php

// read the variables form the string, (this is not needed with some servers).
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$sender = $_REQUEST["sender"];


// include sender IP in the message.
$full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
$message= $full_message;

// remove the backslashes that normally appears when entering " or '
$message = stripslashes($message); 
$subject = stripslashes($subject); 
$sender = stripslashes($sender); 

// add a prefix in the subject line so that you know the email was sent by online form
$subject = "Contact form ". $subject;

// send the email, make sure you replace email@yourserver.com with your email address
if(isset($message) and isset($subject) and isset($sender)){
	mail("xxxxxxxx@hotmail.com", $subject, $message, "From: $sender");
}
?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Por favor, informe também o action que está usando.

 

 

Observe se o arquivo php foi declarado corretamente no action, o Flash é case sensitive.

 

Verifique ainda se a index html e o arquivo php possuem a mesma charset, normalmente utf-8 ou iso 8859-1.

 

 

Abs

Compartilhar este post


Link para o post
Compartilhar em outros sites

Actions

stop();
send_btn.onRelease = function() {
	my_vars = new LoadVars();
	my_vars.sender = email_box.text;
	my_vars.subject = subject_box.text;
	my_vars.message = message_box.text;
	if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") {
		my_vars.sendAndLoad("mailer.php", my_vars, "POST");
		gotoAndStop(2);
	} else {
		error_clip.gotoAndPlay(2);
	}
	my_vars.onLoad = function() {
		gotoAndStop(3);
	};
};
email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=function () {
	if (error_clip._currentframe != 1) {
		error_clip.gotoAndPlay(6);
	}
};

Compartilhar este post


Link para o post
Compartilhar em outros sites

errrrrrrr...

 

if(isset($message) and isset($subject) and isset($sender)){

 

Até onde eu sei o PHP não entende and e sim &&

 

Troca isso ai que talvez resolva... e teste seu php colocando dados fakes...

$subject = "bolinha" etc...

 

E ai vai em mail.php na url e testa para ver se n tem erros só no php...

 

Ler o LOG DE ERROS do servidor tbm ajuda.

 

Abraços

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.