![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/03/2002, 11:31
|
![Avatar de Threepwood](http://static.forosdelweb.com/customavatars/avatar15694_2.gif) | | | Fecha de Ingreso: febrero-2002 Ubicación: Argentina
Mensajes: 906
Antigüedad: 23 años Puntos: 4 | |
Re: recomienda esta pagina Hola!
Te paso un codigo que yo uso... recomienda.htm
recomienda.htm
<form method="POST" action="recomendar.php">
<p>Recomienda este sitio a un amigo:</p>
<p>Tu nombre:<br>
<input type="text" name="tunombre" size="20"><br>
Tu email:<br>
<input type="text" name="tuemail" size="20"><br>
Nombre de tu amigo:<br>
<input type="text" name="nombreamigo" size="20"><br>
Email de tu amigo:<br>
<input type="text" name="emailamigo" size="20"><br>
<br>
<input type="submit" value="Recomendar" name="B1"></p>
</form> recomendar.php
recomendar.php
<?
// Completamos la variable $asunto con el título del mensaje
// y armamos el mensaje dentro de la variable $mensaje
$asunto = "Un amigo te recomienda AventurasGraficas.Com";
$mensaje = "Hola ".$nombreamigo.", tu amigo ".$tunombre." recomienda
que ingreses al sitio www.aventurasgraficas.com, en el cual podrás encontrar
todo lo relacionado con las aventuras graficas.";
// Utilizamos la función mal() de PHP para realizar el envío
// del mensaje
mail($emailamigo, $asunto, $mensaje, "From: ".$tuemail);
?>
<html>
<head><title>Recomendarnos</title></head>
<body>
Se a enviado tu recomendación.
</body>
</html>
Saludos!
<object width="400" height="130">
<param name=movie value="firma.swf">
<param name=quality value=high>
<embed src="http://www.samue.com.mx/firma.swf" quality=high width="400" height="130">
</embed>
</object> |