Ver Mensaje Individual
  #7 (permalink)  
Antiguo 17/07/2015, 06:52
bombinetto
 
Fecha de Ingreso: diciembre-2010
Ubicación: Venezuela
Mensajes: 22
Antigüedad: 13 años, 4 meses
Puntos: 0
Respuesta: formulario validar y enviar por email ...???

ESte el PHP

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>formulario</title>
</head>
<body>
<?php
$nombre = $_POST["nombre"];
$correo = $_POST["correo"];
$numero = $_POST["numero"];
$contenido = $_POST["contenido"];

$para = "[email protected]";
$asunto = "Confirmación";

$mensaje = "
Nombre del Invitado: ".$nombre."
Correo: ".$correo."
Número: ".$numero."
Confirmación: ".$contenido."
";
mail ($para,$asunto,$header,utf8_decode($mensaje));

$para = "[email protected]";
$asunto = "Confirmación";

$mensaje = "
Nombre del Invitado: ".$nombre."
Correo: ".$correo."
Número: ".$numero."
Confirmación: ".$contenido."
";
mail ($para,$asunto,$header,utf8_decode($mensaje));

$header = 'From: ' . $correo . " \r\n";
$header .= "X-Mailer: PHP/".phpversion(). " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

echo "";

?>
<body bgcolor="#F0E4F1">
<h2 align="center">
<span style="font-weight: 400; text-decoration: none underline">
<font face="Century Gothic" color="#000000">Hemos recibido sus datos
correctamente</font></span></h2>
<p align="center">
&nbsp;</p>
<a href="http://www,google.com">
<h2 align="center">
<span style="font-weight: 400; text-decoration: none">
<font face="Century Gothic" color="#000000">Volver a Inicio</font></span></h2></a>
<a href="http://www.google.com"><h2 align="center">
<span style="font-weight: 400; text-decoration: none">
<font face="Century Gothic" color="#000000">Confirmar otro invitado</font></span></h2></a>
</body>
</html>