Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/11/2006, 21:26
m10locura
 
Fecha de Ingreso: marzo-2005
Mensajes: 141
Antigüedad: 19 años, 1 mes
Puntos: 0
Pregunta Problema con $mensaje = $_POST['nombre'];

Tengo un problema, cuando envio los datos del formulario al email, solo me llega el ultimo de los $mensaje = $_POST['CAMPOl']; , en este caso Email , los demas no llegan, supongo q es por q detecta solo el ultimo mensaje = , pero no tengo idea como hacer para q detecto varios mensaje = a la vez, saben como solucionar esto?


<form name='formulario' id='formulario' method='post' action='descargamariano.php' target='_self'>

<input type='text' name='Nombre' id='Nombre'size=30> <br>
<input type='text' name='empresa' id='empresa'size=30><br>
<input type='text' name='puesto'id='puesto' size=30><br>
<input type='text' name='telefono'id='telefono' size=30><br>
<input type='text' name='email'id='email' size=30><br>
<input type='text' name='webcorporativa'id='webcorporativa' size=30><br>
<input type='text' name='pais'id='pais' size=30><br>
<input type='text' name='provincia'id='provincia' size=30><br>
<input type='text' name='direccion'id='direccion' size=30><br>
<input type='text' name='codigopostal'id='codigopostal' size=30><br>
<input type='text' name='perfilindustria'id='perfilindustria' size=30><br>
<input type='text' name='nropcs'id='nropcs' size=30><br>
<input type='text' name='nroadministradores'id='nroadministradores' size=30><br><br>

<input type="hidden" name="redir" value="1">
<input type='submit' value='Enviar formulario'>
<input type='reset' value='resetear formulario'>
</form>

<?php
$cabecera = "Descarga Aisper";
$asunto="Demo";
$de = "From: [email protected]";
$mensaje = $_POST['nombre'];
$mensaje = $_POST['empresa'];
$mensaje = $_POST['puesto'];
$mensaje = $_POST['telefono'];
$mensaje = $_POST['email'];
mail("[email protected]",$asunto,$mensaje,$de);
?>