Ver Mensaje Individual
  #16 (permalink)  
Antiguo 11/02/2005, 10:12
Avatar de ajmataurus
ajmataurus
 
Fecha de Ingreso: enero-2005
Mensajes: 268
Antigüedad: 19 años, 4 meses
Puntos: 0
este es el *.htm
________-
<form action="mail.php" method="post">
<p align="center" style="margin-bottom: -11">
<img border="0" src="imagenes/enviarcomentario2.jpg">
<p align="center" style="margin-bottom: -11">

<font color="#999999"> Nombre: <input type="text" name="nombre" size="20" style="color: #FFFFFF; font-weight: bold; background-color: #CCCCCC"><br />
<input type=hidden [email protected] name="destinatario" size="30">
E-mail: <input type="text" name="headers" size="30" value="@" style="color: #FFFFFF; background-color: #CCCCCC; font-weight: bold"><br />
Asunto: <input type="text" name="asunto" size="20" style="color: #FFFFFF; font-weight: bold; background-color: #CCCCCC"><br />
Comentario:<br /> <textarea name="cuerpo" cols="45" rows="7" style="color: #999999"></textarea></font>
<p align="center">
<font color="#999999"><input type="submit" value="Enviar!" style="background-color: #999999; color: #FFFFFF; font-weight: bold; border-style: outset">
</font>
</form>
__________
y como sabes este es el *.php
_________
<?php
if(eregi("^([a-zA-Z0-9._]+)@([a-zA-Z0-9.-]+).([a-zA-Z]{2,4})$",$email))
{
mail("$destinatario","$asunto","$cuerpo");
echo "Se envió satisfactoriamente su comentario.";
echo "<p>";
echo "Gracias por el comentario vertido estimado(a) $nombre ";
echo "<p>";
}
else
{
echo "El mail es inválido, porfavor estimado(a) $nombre ingrese un Mail válido";
}

?>
____________
ok....