Warning: Use of undefined constant Titulo - assumed 'Titulo' (this will throw an Error in a future version of PHP) in /home/topgerad/public_html/orcamento.php on line 17
Notice: Undefined variable: ac in /home/topgerad/public_html/orcamento.php on line 17
Notice: Trying to access array offset on value of type null in /home/topgerad/public_html/orcamento.php on line 17
$qp = "select * from Contato where Codigo = '1'";
$rp = mysql_query($qp) or die(mysql_error());
$ap = mysql_fetch_array($rp);
?>
if(isset($_POST[s1]))
{
session_start();
if ($_POST["Nome"] == '' || $_POST["Empresa"] == '' || $_POST["Email"] == '' || $_POST["Telefone"] == '' || $_POST["Cidade"] == '' || $_POST["Estado"] == '' || $_POST["Pais"] == '' || $_POST["Mensagem"] == '' || $_POST["ComoSoube"] == '')
{
echo "";
}
else
{
$para = "$ap[Email]";
$titulo = "Site - Orçamento";
################ INFORMAÇÕES DO FORM ################
$data = date("d/m/y"); //função para pegar a data de envio do e-mail
$ip = $_SERVER['REMOTE_ADDR']; //função para pegar o ip do usuário
$navegador = $_SERVER['HTTP_USER_AGENT']; //função para pegar o navegador do visitante
$hora = date("H:i"); //para pegar a hora com a função date
########## CORPO DA MENSAGEM ################
$mensagem .="Nome Completo: $_POST[Nome]\n";
$mensagem .="Nome Empresa: $_POST[Empresa]\n";
$mensagem .="CNPJ: $_POST[CNPJ]\n";
$mensagem .="E-mail: $_POST[Email]\n";
$mensagem .="Telefone: $_POST[Telefone]\n";
$mensagem .="Cidade: $_POST[Cidade]\n";
$mensagem .="Estado: $_POST[Estado]\n";
$mensagem .="País: $_POST[Pais]\n";
$mensagem .="Requer Visita Técnica? $_POST[RequerVisita]\n";
$mensagem .="Mensagem: $_POST[Mensagem]\n";
$mensagem .="Como ficou sabendo: $_POST[ComoSoube]\n";
$mensagem .="Aceita E-mail Marketing? $_POST[EmailMarketing]\n";
######################
$cabecalho = "Site - Orçamento";
mail($para, $titulo , $msg , "from: $_POST[Email]");
echo "";
}
}
$qp = "select * from Orcamento where Codigo = '1'";
$rp = mysql_query($qp) or die(mysql_error());
$ap = mysql_fetch_array($rp);
?>
require_once("header.php");?>
Orçamento
Orçamento
Solicitação de Assistência
Os campos com asterisco vermelho (*) são de preenchimento obrigatório. Produtos amassados, riscados ou quebrados, ligar direto para SAC 3004-8778
Este é um PRÉ AGENDAMENTO.
Você receberá a confirmação do agendamento e atendimento técnico via e-mail em até 24 horas úteis.
Warning: Use of undefined constant Mapa - assumed 'Mapa' (this will throw an Error in a future version of PHP) in /home/topgerad/public_html/orcamento.php on line 279
Notice: Undefined variable: ap in /home/topgerad/public_html/orcamento.php on line 279
Notice: Trying to access array offset on value of type null in /home/topgerad/public_html/orcamento.php on line 279