Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/11/2012, 11:13
Avatar de toku84
toku84
 
Fecha de Ingreso: noviembre-2012
Mensajes: 2
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: Utilizar .swf para respuesta condicionada en formulario

Ah y se me olvidaba el php...

<?php

$nombreRemitente = $_POST['nombreUsuario'];
$mailRemitente = $_POST['mailUsuario'];
$mensajeRemitente = $_POST['msgUsuario'];


$nombreUsuaro = stripslashes($nombreRemitente);
$mailUsuario = stripslashes($mailRemitente);
$msgUsuario = stripslashes($mensajeRemitente);


$to = "[email protected]";
$from = "$mailRemitente ";
$subject = "Formulario de contacto de tu sitio web";
$message = <<<EOF
<html>
<body bgcolor="#FFFFFF">
<b>Nombre</b> = $nombreRemitente<br /><br />
<b>Mail</b> = <a href="mailto:$mailRemitente">$mailRemitente</a><br /><br />
<b>Mensaje</b> = $mensajeRemitente<br />
</body>
</html>
EOF;
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$to = "$to";

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

exit();
?>