Tema: quiero ayuda
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/12/2008, 06:08
poos
 
Fecha de Ingreso: septiembre-2007
Mensajes: 59
Antigüedad: 17 años, 6 meses
Puntos: 3
Respuesta: quiero ayuda

Podes probar algo asi:


Código:
<?
if ($_POST["nombre"] and $_POST["apellido"]){
     $mensaje = "Nombre: " . $_POST["nombre"] . "\n\r";
     $mensaje .= "Apellido: " . $_POST["apellido"] . "\n\r";
     mail("[email protected]","Aqui el asunto",$mensaje);
}
?>

<form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
<input type="text" name="nombre">
<input type="text" name="apellido">
<input type="submit" value="Enviar estos datos por mail">
</form>
OJO: No lo probe, lo escribi aqui nomas, pero tiene que funcionar, espero te sirva.