Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/07/2002, 01:23
androide
Invitado
 
Mensajes: n/a
Puntos:
Re: Llenado un formulario mandar datos a un email (?)

he pero que complique uds dos no ? hay te dejo el código chapu ... que lo disfrutes ...

Este es el formulario que deberás crear en html ......

<form method="post" action="email.php">
De:<br><input type="text" name="de" size="30">
<br>Para:
<br><input type=text name=para size=36>
<br>Asunto:
<br><input type=text name=asunto size=36>
<br>Mensaje:
<br><textarea name="mensaje" WRAP="physical" COLS="50" ROWS="12">
</textarea><br>
<input type=submit name=submit value=ENVIAR>
<input type=reset>
</form>


y este es el mail.php


<?
$para_quien="$para";
$titulo_correo="$asunto";
mail("$para_quien","$titulo_correo& quot;,"Nombre: ".$de." "."Su correo: ".$de." "."Mensaje: ".$mensaje,"From: ".$de);

echo "Los datos que enviaste fueron : ";
echo "";
echo "";
echo "De: $de<br>";
echo "Para: $para<br>";
echo "Asunto: $asunto<br>";
echo "Mensaje: $mensaje<br>";
echo "<br> ";
echo "Gracias por visitar mi pagina.";
?>

chao ... pásate por <a href='ir.asp?http://www.xicox.com ' target='_blank'>http://www.xicox.com ...</a> y fírmate mi libro ...bye


<div align="center"><img src="http://www.xicox.com/firma/firma.gif" width="468" height="100"></div>