Boa tarde...
Construi meu site pelo webacappela 4, construí o formulário de contato pelo próprio programa, mas não esta funcionando de jeito nenhum, o engraçado é que tenho outros dois sites construido pelo mesmo programa e funcionam perfeitamente.
Este que não esta funcionando é .com
www.aquapeixes.com
Os que estão funcionando é .com.br
Peguei o código PHP pelo servidor, se der pra alguém dar uma avaliada pra ver o que esta de errado, agradeço muito:
[php]
<?php
$b_file_exists1 = @file_exists('.htWaGlobalFunction.php') ;
if ($b_file_exists1===false) {
echo "{\"success\":\"false\",\"error\":\"Error: .htWaGlobalFunction.php hasn't been published' !\"}";
return;
};
include_once('.htWaGlobalFunction.php');
include_once('waErrorFunction.php');
$reply_to="";
$text="";
$b_have_info=false;
$wa_form0= waRetrievePostParameter('field_0_wa_id_7vjslsfuny9aq8');
$text.= "* Nome/Razão Social:\n".$wa_form0."\n\n";
if (($b_have_info==false) && (strlen($wa_form0)>0)) $b_have_info=true;
$wa_form1= waRetrievePostParameter('field_1_wa_id_7vjslsfuny9aq8');
$text.= "* E-mail:\n".$wa_form1."\n\n";
if (($b_have_info==false) && (strlen($wa_form1)>0)) $b_have_info=true;
if (strlen($wa_form1)>0){
$reply_to=$wa_form1;
}
$wa_form2= waRetrievePostParameter('field_2_wa_id_7vjslsfuny9aq8');
$text.= "* Assunto:\n".$wa_form2."\n\n";
if (($b_have_info==false) && (strlen($wa_form2)>0)) $b_have_info=true;
$wa_form3= waRetrievePostParameter('field_3_wa_id_7vjslsfuny9aq8');
$text.= "* Telene(s) (Em caso de doações):\n".$wa_form3."\n\n";
if (($b_have_info==false) && (strlen($wa_form3)>0)) $b_have_info=true;
$wa_form4= waRetrievePostParameter('field_4_wa_id_7vjslsfuny9aq8');
$text.= "* Autoriza a divulgação do Telefone:\n".$wa_form4."\n\n";
if (($b_have_info==false) && (strlen($wa_form4)>0)) $b_have_info=true;
$wa_form5= waRetrievePostParameter('field_5_wa_id_7vjslsfuny9aq8');
$text.= "* Mensagem:\n\n";
$wa_form6= waRetrievePostParameter('field_6_wa_id_7vjslsfuny9aq8');
$text.= $wa_form6."\n\n";
if (($b_have_info==false) && (strlen($wa_form6)>0)) $b_have_info=true;
$message_error="";
$res=false;
$destinataire="contato@aquapeixes.com";
$title="CONTATO SITE";
if ($b_have_info){
$res = waSendMail($destinataire, $title,$text,$reply_to);
$message_error=waGetError();
if ($waErrorPhpMailReporting==1) $message_error="";
}
else
{
$message_error="Nothing to send $wa_form2";
}
echo "{\"success\":".(($res)?'true':'false').",\"error\":\"".$message_error."\"}";
?>
[/php]Obrigado!
Mauricio Mol...
Tô em todas
Registrado
1.6K Mensagens
52 Curtidas
Formulario de contato (webacappela), erro
#1 Por Mauricio Mol...
27/04/2012 - 17:39