todavia no he echo el elemento donde van los datos
lo unico que quiero es una vez echo la la tabla la los datos
digitados esten el la tabla
aca dejo el codigo en php que estoy usando para
tomar las variables y enviarlas al correo
Código PHP:
<?php
$tipoid= $_POST['tipoid'];
$nuid= $_POST['nuid'];
$nombre = $_POST['nombre'];
$apellido = $_POST['apellido'];
$mes = $_POST['mes'];
$dia = $_POST['dia'];
$ano = $_POST['ano'];
$tipuser= $_POST['tipuser'];
$tipemp= $_POST['tipemp'];
$tel1 = $_POST['tel1'];
$tel2 = $_POST['tel2'];
$tel3 = $_POST['tel3'];
$mail = $_POST['mail'];
$mes1 = $_POST['mes1'];
$dia1 = $_POST['dia1'];
$ano1 = $_POST['ano1'];
$esp= $_POST['esp'];
$header = "From: " . strip_tags($_POST['mail']) . "\r\n";
$header .= "Reply-To: ". strip_tags($_POST['mail']) . "\r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$mensaje = '<html><body>';
$mensaje .= '<p>INFORMACION DE CITA DE USUARIO</p>';
$mensaje .= '<img src="http://www.fundacionpromagdalenaips.com/form/logo.png">';
$mensaje .= "<table width='439' border='1' cellspacing='0' cellpadding='0'>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Tipo de Identificacion</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['tipoid']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Numero de Identificacion:</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['nuid']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Nombre:</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['nombre']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Apellidos:</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['apellido']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Fecha de Nacimiento</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['dia']) . "/" . strip_tags($_POST['mes']) . "/" . strip_tags($_POST['ano']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Tipo de Usuario:</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['tipuser']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Tipo de Empresa:</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['tipemp']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Telefono:</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['tel1']) . "-" . strip_tags($_POST['tel2']) . "-" . strip_tags($_POST['tel3']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Correo Electrnico</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['mail']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Fecha de Autorizacion</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['dia']) . "/" . strip_tags($_POST['mes']) . "/" . strip_tags($_POST['ano']) . "</td></tr>";
$mensaje .= "<tr><th height='36' bgcolor='#BAD5FC' scope='row'>Especialista Requerido</th><td bgcolor='#FFFFFF'>" . strip_tags($_POST['esp']) . "</td></tr>";
$mensaje .= '</table>';
$mensaje .= '</body></html>';
$mensaje .= "Enviado el " . date('d/m/Y', time());
$para = '[email protected]';
$asunto = 'Solicitud de Cita para - '. $nombre . " \r\n";
mail($para, $asunto, utf8_decode($mensaje), $header);
$url="enviado.html";
echo "<script>window.location='$url';</script>";
?>