Ir para conteúdo
Fórum Script Brasil
  • 0

Problema ao enviar por email dados de usuário logado!


Alessandro Ramos

Pergunta

Boa tarde a todos!
Criei um formulário de pedidos, onde o cliente acessa via login e automaticamente é carregado os dados deles nesse pedido (na área de entrega), até ai tudo bem.
Alguém teria como explicar, ou dá exemplo, de como posso enviar esse formulário por email, mas trazendo essas informações do usuário logado? O que eu criei, só vem os dados do pedido, os dados do cliente (que são nome, endereço e telefone e email) ficam em branco. Desde já agradeço sua atenção! O fomrulário envia os dados para um arquivo mail.php que faz o envio e formatação do email.

Segue abaixo o código do mail.php

<?php
include "login_senha.php";

$login = $_SESSION['login_usuario'];

$sql = mysql_query("SELECT * FROM usuarios WHERE login = '$login'");
while($linha = mysql_fetch_array($sql)) {
	$nome = $linha['nome'];
	$endereco = $linha['endereco'];
	$cep = $linha['cep'];
	$telefone = $telefone['telefone'];
	$email = $linha['email'];
}
	
$m = $_POST["mensagem"];
$data = $_POST["data"];
$hora = date('H:i:s');
$endereco = $_POST["endereco"];
$telefone = $_POST["telefone"];
$cep = $_POST["cep"];
$pagamento = $_POST["pagamento"];
$troco = $_POST["troco"];
$nome = $_POST["nome"];
$email = $linha["email"];
$mtotal = $_POST["mtotal"];
$nop = $_POST["nop"];
$op = $_POST["op"];
$quentes = $_POST["quentes"];
$saladas = $_POST["saladas"];
$obs = $_POST["obs"];
$sopas = $_POST["sopas"];
$sobremesas = $_POST["sobremesas"];
$sucos = $_POST["sucos"];
$bebidas = $_POST["bebidas"];
$emporio = $_POST["emporio"];

$message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Bardana</title>';
$message .= '<style type="text/css">body, #bodyTable{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:14px;color:#000000;font-weight:normal;}table{border-collapse:collapse;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;}img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;}a{text-decoration:none !important;}.ReadMsgBody{width:100%;} .ExternalClass{width:100%;}.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;}table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;}#outlook a{padding:0;}img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;}body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;}.ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;}</style>';
$message .= '</head><body bgcolor="#EEEEEE" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"><center style="background-color:#EEEEEE;"><table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"><tr><td align="center" valign="top" id="bodyCell"><table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" style="font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><tr><td background="http://www.bardananatural.com.br/cardapioonline/images/centro.jpg" width="650" height="200" valign="top" align="center" style="color:#008D44;font-size:18px;"><img src="http://bardananatural.com.br/cardapioonline/images/topo.jpg" alt="Bardana" width="650" height="99" /><strong>Pedido feito em ';
$message .= $data; 
$message .= '</head><body bgcolor="#EEEEEE" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"><center style="background-color:#EEEEEE;"><table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"><tr><td align="center" valign="top" id="bodyCell"><table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" style="font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><tr><td background="http://www.bardananatural.com.br/cardapioonline/images/centro.jpg" width="650" height="30" valign="top" align="center" style="color:#f0610e;font-size:14px;"><strong>Entrega prevista para ';
$message .= date('H:i:s', strtotime('+170 minute', strtotime($hora)));

$message .= '</strong><br /><br /></td></tr><tr><td background="http://www.bardananatural.com.br/cardapioonline/images/centro.jpg" width="650" valign="top" align="center"><table border="0" cellpadding="0" cellspacing="0" style="font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;">';
$message .= '<tr><td width="295" height="100" valign="top" align="left" style="font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p><strong>Endereço: </strong>' . $endereco . '</p><p><strong>CEP: </strong>' . $cep . '</p><p><strong>Forma de Pagamento: </strong><br />' . $pagamento . '</p><p><strong>Precisa de troco?: </strong><br />' . $troco . '</p><br /></td><td width="295" height="100" valign="top" align="left" style="font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:14px;"><p><strong>Nome: </strong>' . $nome . '</p><p><strong>Telefone: </strong>' . $telefone . '</p><p><strong>E-mail: </strong>' . $email . '</p><p><strong>Total do seu pedido: </strong>R$ ' . $mtotal . '</p><br /></td></tr><tr><td colspan="2" width="295" height="3" bgcolor="#008D44" style="font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:14px;"></td></tr><tr><td width="295" height="40" valign="middle" align="left" style="color:#008D44;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p><strong>Escolha a sua opção: </strong></p></td><td width="295" height="40" valign="middle" align="left" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:14px;"><p>' . $nop . $op . '</p></td></tr>';
$message .= '<tr><td colspan="2" width="293" height="3" border="1" bgcolor="#008D44" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:14px;"></td></tr><tr><td width="293" height="40" border="1" cellspacing="1" cellpadding="10" valign="top" align="left" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p style="color:#008D44;"><strong>Pratos quentes:</strong></p>' . $quentes . '<br /></td><td width="293" height="40" valign="top" cellspacing="1" cellpadding="10" bgcolor="#D7D7D7" border="1" align="left" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p style="color:#008D44;"><strong>Saladas:</strong></p>' . $saladas . '<br /></td></tr>';
$message .= '<tr><td colspan="2" width="293" height="3" border="1" bgcolor="#008D44" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:14px;"></td></tr><tr><td width="293" height="40" border="1" cellspacing="1" cellpadding="10" bgcolor="#D7D7D7" valign="top" align="left" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p style="color:#008D44;"><strong>Sopa do Dia:</strong></p>' . $sopas . '<br /></td><td width="293" height="40" cellspacing="1" cellpadding="10" border="1" valign="top" align="left" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p style="color:#008D44;"><strong>Sobremesas:</strong></p>' . $sobremesas . '<br /></td></tr>';
$message .= '<tr><td colspan="2" width="293" height="3" border="1" bgcolor="#008D44" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:14px;"></td></tr><tr><td width="293" height="40" border="1" cellspacing="1" cellpadding="10" valign="top" align="left" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p style="color:#008D44;"><strong>Sucos:</strong></p>' . $sucos . '<br /></td><td width="293" height="40" border="1" cellspacing="1" cellpadding="10" bgcolor="#D7D7D7" valign="top" align="left" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p style="color:#008D44;"><strong>Bebidas:</strong></p>' . $bebidas . '<br /></td></tr>';
$message .= '<tr><td colspan="2" width="293" height="3" border="1" bgcolor="#008D44" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:14px;"></td></tr><tr><td colspan="2" width="293" height="40" cellspacing="1" cellpadding="10" border="1" style="color:#000000;font-family:Tahoma, Geneva, Helvetica, Arial, "Lucida Grande", sans-serif;font-size:12px;"><p style="color:#008D44;"><strong>Nosso Empório:</strong></p>' . $emporio . '<br /></td></tr>';
$message .= '<tr><td colspan="2" width="295" height="100" align="center" valign="middle" bgcolor="#f47123" style="line-height:18px">Obrigado pela sua preferência.<br />Seu pedido vai chegar rapidinho!<br />www.bardanacozinhanatural.com.br<br />21. 2292-9232 | 2220-0334</td></tr></table></td></tr><tr><td background="http://www.bardananatural.com.br/cardapioonline/images/centro.jpg" width="650" height="50" valign="top" align="center">
<img src="http://bardananatural.com.br/cardapioonline/images/rodape.jpg" alt="" width="650" height="50" /></td></tr></table></td></tr></table></center></body></html>';

$to = $mail;
$subject = "Seu pedido ao restaurante BARDANA";

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";

$headers .= 'From: <contato@ramosdesign.com.br>' . "\r\n";
$headers .= 'Cc: contato@ramosdesign.com.br' . "\r\n";

//mail($to,$subject,$message,$headers);

if(mail($to,$subject,$message,$headers))
{
  echo "Seu pedido foi enviado com sucesso.<br>Você está recebendo uma cópia no endereço de e-mail que foi fornecido.<br><br>Obs.: Se você não receber a cópia do seu pedido em 10 minutos,<br>cheque a sua caixa de SPAM ou ligue para 2292-9232 | 2295-0334<br><br>";
}else{
  echo "Algo saiu errado no envio do seu pedido.<br>Por favor, ligue para 2292-9232 | 2295-0334<br><br>";
}

echo "<input type='button' id='voltar' class='botao' value=' VOLTAR ' onClick='location.replace(\"" . "http://bardananatural.com.br/" . "\");'>";
?>

 

 

Se for ajudar, abaixo o formulário (ainda tem um erro que estou tentando resolver, a forma de pagamento aparece como numero 1) Esse arquivo inicialmente era um HTML, estudando os cursos eu converti para PHP, os dados do usuário logado aparecem direitinho.

<? include "login_senha.php";
   include "verifica.php";

$login = $_SESSION['login_usuario'];

$sql = mysql_query("SELECT * FROM usuarios WHERE login = '$login'");
while($linha = mysql_fetch_array($sql)) {
	$nome = $linha['nome'];
	$endereco = $linha['endereco'];
	$cep = $linha['cep'];
	$telefone = $telefone['telefone'];
	$email = $linha['email'];
}


?>
<!doctype html>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta charset="utf-8">
<title>BARDANA</title>
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,900' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:700' rel='stylesheet' type='text/css'>
<link href='form.css' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="form.js"></script>
</head>
<body>
<div id="pagina">
<img src="images/logo_cardapio.png">
<div class="barra">CARDÁPIO | SÁBADO</div>
<h3>Agora ficou fácil de fazer o seu pedido, experimente!<br>
  <em>Pedidos feitos até as 11hs serão entregues no maximo às 11:50</em> </h3>
  <br>
  <br>
<div>
  <!-- OPÇÕES -->
  <h1>1</h1>
<div id="opcoes">
<span class="titulo">Escolha a sua opção:</span><br>
<div id="op1"><input type="radio" name="promo" value="17.90" op="1"> <strong>Opção 1:</strong> 3 Quentes e 3 Saladas - R$ 17,90<br></div>
<div id="op2"><input type="radio" name="promo" value="20.90" op="2"> <strong>Opção 2:</strong> 4 Quentes e 4 Saladas - R$ 20,90<br></div>
<div id="op3"><input type="radio" name="promo" value="22.90" op="3"> <strong>Opção 3:</strong> 5 Quentes e 5 Saladas - R$ 22,90<br></div>
<div id="op4"><input type="radio" name="promo" value="0.00"  op="4"> <strong>Opção 4: Monte seu prato à vontade</strong> (mínimo de 6 itens)<br></div>
</div>
<input type="button" id="mudaopcao" class="botao" value=" Mudar a minha opção ">
<br>

<div id="titulo2">
<h1>2</h1>
<span class="titulo">Escolha os itens:</span><br><br>
</div>

<!-- PRATOS QUENTES -->
<div id="quentes">
<div class="titulo">Pratos quentes:</div><br>
<div><input type="checkbox" value="3.50"> <strong>Arroz Cateto Integral</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Arroz Cateto Integral de Panela</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Feijão Preto (P)</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Farofa de Cebola</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Salteado de Batata com Orégano</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Proteína de Soja e Champignon ao Molho Curry com Leite de Coco (P)</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Tofu Refogado com Brócolis e Ervilha-torta  (P)</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Abobrinha Assada com Tomate e Alho</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Espaguete Integral ao Molho Betacaroteno com Azeitonas Pretas (G)</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Bolinho de Batata-doce ao Molho Chutney Indiano de Frutas (G)</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Torta Integral de Ricota com Tomate Seco (G)(L)</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
</div>
<br>

<!-- SALADAS -->
<div id="saladas">
<div class="titulo">Saladas:</div><br>
<div><input type="checkbox" value="3.50"> <strong>Alfaces</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Tomate com Cebolinha</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Rúcula</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Salada de Agrião com Milho ao Molho Verde dos Deuses - azeitonas verdes, manjericão, salsinha, alho e azeite</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Salada de Aveia em Grãos com Aipo e Passas (G)</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Berinjela Assada ao Alho Porró e Açafrão</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Raladinho Agridoce – repolho verde, repolho roxo, cenoura, molho mostarda, coentro, limão</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Salada Italiana Light – penne integral, ricota, ervilha, vagem, manjericão e orégano (L)</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Couve-flor Corada ao Molho de Laranja e Gengibre</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
<div><input type="checkbox" value="3.50"> <strong>Frutas</strong><span>: R$ 3,50 - Quant.: <select></select></span></div>
</div>
<br>

<strong>Legenda:</strong><br>
L = contém lactose<br>
G = contém glúten<br>
P = fonte de proteína vegetal<br>
A = contém açucar<br>
<br>

<!-- SOBREMESAS -->
<div id="sobremesas">
<span class="titulo">Sobremesas:</span><br>
<div><input type="checkbox" value="5.50"> <strong>Torta Integral de Banana A G</strong>: R$ 5,50 - Quant.: <select></select></div>
<div><input type="checkbox" value="5.50"> <strong>Torta Integral de Banana c/ Chocolate Meio Amargo A G</strong>: R$ 5,50 - Quant.: <select></select></div>
<div><input type="checkbox" value="5.50"> <strong>Torta Integral de Banana s/ Açúcar G</strong>: R$ 5,50 - Quant.: <select></select></div>
<div><input type="checkbox" value="5.50"> <strong>Energy Ball – aveia, amendoim, açúcar mascavo, água (A)(G)</strong>: R$ 5,50 - Quant.: <select></select></div>
<div><input type="checkbox" value="5.50"> <strong>Torta Integral de Abacaxi(A)(G)</strong>: R$ 5,50 - Quant.: <select></select></div>
</div>
<br>

<!-- SUCOS -->
<div id="sucos">
<span class="titulo">Sucos:</span><br>
<div><input type="checkbox"> <strong>Laranja</strong>: <input type="radio" name="suco1" l="300ml" value="4.50">300ml(R$ 4,50) <input type="radio" name="suco1" l="500ml" value="5.90" checked>500ml(R$ 5,90) - Quant.: <select></select></div>
<div><input type="checkbox"> <strong>Uva, Morango e Cacau</strong>: <input type="radio" name="suco2" l="300ml" value="4.50">300ml(R$ 4,50) <input type="radio" name="suco2" l="500ml" value="5.90" checked>500ml(R$ 5,90) - Quant.: <select></select></div>
<div><input type="checkbox"> <strong>Manga com Gengibre</strong>: <input type="radio" name="suco3" l="300ml" value="4.50">300ml(R$ 4,50) <input type="radio" name="suco3" l="500ml" value="5.90" checked>500ml(R$ 5,90) - Quant.: <select></select></div>
<div><input type="checkbox"> <strong>Suco Verde*</strong>: <input type="radio" name="suco5" l="300ml" value="4.90">300ml(R$ 4,90) <input type="radio" name="suco5" l="500ml" value="6.90" checked>500ml(R$ 6,90) - Quant.: <select></select></div>
<br>
<div>*Verde: Laranja, Melão, Maçã, Limão, Couve e Hortelã</div>
</div>
<br><br>

<h1>3</h1>
<span class="titulo">Acrescente outros itens:</span><br><br>

<!-- BEBIDAS -->
<div id="bebidas">
<span class="titulo">Bebidas:</span><br>
<div><input type="checkbox" value="3.90"> <strong>Mate Leão Sabores - Copo 250ml</strong>: R$ 3,90 - Quant.: <select></select></div>
<div><input type="checkbox" value="2.90"> <strong>Água Mineral - Garrafa 300ml</strong>: R$ 2,90 - Quant.: <select></select></div>
<div><input type="checkbox" value="3.90"> <strong>Coca Cola Zero - Lata</strong>: R$ 3,90 - Quant.: <select></select></div>
<div><input type="checkbox" value="3.90"> <strong>Guaraná Zero - Lata</strong>: R$ 3,90 - Quant.: <select></select></div>
</div>
<br>

<!-- SOPAS -->
<div id="sopas">
<span class="titulo">Sopas:</span><br>
<div><input type="checkbox" value="11.90"> <strong>Delícia de Abóbora – com manjericão e alecrim</strong>: R$ 11,90 - Quant.: <select></select></div>
</div>
<br><br>

<h1>4</h1>
<span class="titulo">Gostaria de conhecer o nosso Empório? <input type="button" id="btemporio" class="botao" value=" Clique aqui "></span><br>

<!-- EMPORIO -->
<div id="emporio">
<!--<span class="titulo">Empório:</span><br>-->
<div><input type="checkbox" value="0.00"> <strong>Em breve</strong>: R$ 0,00 - Quant.: <select></select></div>
<div><input type="checkbox" value="0.00"> <strong>Em breve</strong>: R$ 0,00 - Quant.: <select></select></div>
<div><input type="checkbox" value="0.00"> <strong>Em breve</strong>: R$ 0,00 - Quant.: <select></select></div>
</div>
<br><br>

<h1>5</h1>
<span class="titulo">Informações:</span><br>

<form action="mail.php" method="post">

<table width="700" border="0">
  <tr>
    <td>Total do seu pedido:</td>
    <td><span id="total2"></span></td>
  </tr>
  <tr>
    <td style="width:200px;">Qual a forma de pagamento?</td>
    <td>       
     <select id="pagamento" name="pagamento">
        <option value="Dinheiro">Dinheiro</option>
        <option value="Cartão de Débito - Elo">Cartão de Débito - Elo</option>
        <option value="Cartão de Débito - Visa">Cartão de Débito - Visa</option>
        <option value="Cartão de Débito - Redeshop">Cartão de Débito - Redeshop</option>
        <option value="Cartão de Débito - Master">Cartão de Débito - Master</option>
        <option value="Cartão de Crédito - American">Cartão de Crédito - American</option>
        <option value="Cartão de Crédito - Diners">Cartão de Crédito - Diners</option>
        <option value="Cartão de Crédito - Visa">Cartão de Crédito - Visa</option>
        <option value="Cartão de Crédito - Master">Cartão de Crédito - Master</option>
        <option value="Vale-Refeição - Green Vale">Voucher - Green Vale</option>
        <option value="Vale-Refeição - Plan Vale">Voucher - Plan Vale</option>
        <option value="Vale-Refeição - Visa Vale">Voucher - Visa Vale</option>
        <option value="Vale-Refeição - Ticket Refeição">Voucher - Ticket Refeição</option>
        <option value="Vale-Refeição - Sodexo">Voucher - Sodexo</option>
     </select>
   </td>
  </tr>
  <tr>
    <td><label for="troco">Precisa de troco?</label></td>
    <td><input name="troco" type="text" required id="troco" size="60" nome="troco"></td>
  </tr>
  <tr>
    <td>Nome:</td>
    <td><? echo $nome ?></td>
  </tr>
  <tr>
    <td>Endereço:</td>
    <td><? echo $endereco ?></td>
  </tr>
  <tr>
    <td>CEP:</td>
    <td><? echo $cep ?></td>
  </tr>
  <tr>
    <td>Telefone(s):</td>
    <td><? echo $telefone ?></td>
  </tr>
  <tr>
    <td>Email:</td>
    <td><? echo $email ?></td>
  </tr>
</table>
<br><br>

	<!--<input type="hidden" name="mensagem" value="">-->
    <input type="hidden" name="data" value="">
    <input type="hidden" name="mtotal" value="">
    <input type="hidden" name="nop" value="">
    <input type="hidden" name="op" value="">
    <input type="hidden" name="quentes" value="">
    <input type="hidden" name="saladas" value="">
    <input type="hidden" name="sopas" value="">
    <input type="hidden" name="sobremesas" value="">
    <input type="hidden" name="sucos" value="">
    <input type="hidden" name="bebidas" value="">
    <input type="hidden" name="emporio" value="">
	<input type="submit" class="submit" name="Submit" value="Faça seu pedido!">
</form>
<br><br>
</div>
<div id="total"></div>

<div id="alerta"></div>

<div id="msg"></div>

</div> <!-- pagina -->
</body>
</html>

 

Link para o comentário
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152.1k
    • Posts
      651.8k
×
×
  • Criar Novo...