Ver Mensaje Individual
  #8 (permalink)  
Antiguo 10/09/2002, 20:24
chivi
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 889
Antigüedad: 22 años, 3 meses
Puntos: 4
Re: Hola amigos.. me podrian ayudar ?

Buenas:

Creo que te daré la solución.

formulario.htm
---------------------
<form method="post" action="enviar.php">
Tu Nombre: <input type="text" name="tu_nombre">
Tu email: <input type="text" name="tu_email">
Su Nombre: <input type="text" name="su_nombre">
Su email: <input type="text" name="su_email">
Comentario: <textarea name="comentario">Bla.. bla..</textarea>
</form>

enviar.php
-----------------
<?
$asunto="Un amigo te recomendó visitar (pon la url de tu página)";
$mensaje="Hola $su_nombre\n$tu_nombre te recomienda que visites el sitio (pon la url de tu página).\nTe comenta también lo siguiente: $comentario";
if(($su_email == "") and ($asunto == "") and ($mensaje == "") and ($tu_email == "")){
mail($su_email, $asunto, $mensaje, "FROM: $tu_email");
echo "Formulario enviado con éxito";}
else{
echo "Debes rellenar TODOS los campso del formulario";
?>

Le acabo de hacer sin más, así que ni lo probé, por lo que si hay algún error, mis disculpas.

Un saludo de un amigo.

PD: No lo hago por dinero, lo hago por hobby

<html><center><embed src="http://www.iespana.es/redmaestro/banner.swf" height=75 width=500>
</embed></center></html>