este es el script en php
Código PHP:
Ver original
<? //recepción de datos $nombre = $_POST['nombre']; $email = $_POST['email']; $asunto = $_POST['asunto']; $comentario = $_POST['comentario']; //fin de recepciòn de datos //Acción de envío //----------------------------// $mensaje = 'Este es mi mensage y los datos de las personas son: Nombre:'.$nombre.' Email:'.$email.' Asunto:'.$asunto.' Mensage:'.$comentario.''; echo 'Se ha enviado correctamente el mensage'; ?>
Este es el formulario en HTML
Código HTML:
Ver original
<form action="servillantasContacto.php" method="post" enctype="text/plain"> <table border="0" cellspacing="0" cellpadding="4" width="90%"> <tr> <td width="30%" style="height: 30px"> </td> <td width="70%" style="height: 30px"> <input type="text" name="nombre" id="nombre" size="20"/> </td> </tr> <tr> <td style="height: 30px"> </td> <td style="height: 30px"> <input type="text" name="email" id="email" size="20"/> </td> </tr> <tr> <td style="height: 30px"> </td> <td style="height: 30px"> <input type="text" name="asunto" id="asunto" size="20"/> </td> </tr> <tr> <td> </td> <td> <textarea name="comentario" id="comentario" cols="30" wrap="virtual" rows="4"> </textarea> </td> </tr> <tr> <td> </td> <td> <input type="submit" name="submit" value="Submit"/> </td> </tr> </table> </form>
Lo que me llega al correo es lo siguiente
DE: APACHE para:[email protected]
asunto(sin asunto)
nombre:
email:
asunto:
mensaje:
donde debería de aparecer la info, no hay nada !!!
ya revisé si depronto puse mal los nombres de los campos de texto en el script pero no están bien!!, AYUDA POR FAVOR...