Ver Mensaje Individual
  #11 (permalink)  
Antiguo 12/01/2011, 12:54
moreweed
 
Fecha de Ingreso: enero-2011
Ubicación: Panamá
Mensajes: 18
Antigüedad: 13 años, 4 meses
Puntos: 0
Respuesta: Envio de formulario por php

amigo heiroon de todas las formas no m funciona agarre y copie el codigo al final del html ahora ni siquiera envio nada al correo

asi lo puse


<form action="" method="post" enctype="text/plain" name="Formulario" id="Formulario" onSubmit="MM_validateForm('nombre','','R','asunto' ,'','R','mail','','RisEmail','texto','','R');retur n document.MM_returnValue">
<fieldset>
<p><label>Nombre <input name="nombre" type="text" id="nombre" size="25" /></label></p>

<p><label>Asunto <input name="asunto" type="text" id="asunto" size="20" /></label></p>

<p><label>Correo Electronico <input name="correo" type="text" id="correo" size="40" /></label></p>

Texto
<p><label><textarea name="consulta" cols="50" rows id="consulta""6"></textarea>
</label></p>

<input name="enviar" type="submit" id="enviar" value="ENVIAR"/>
<input name="Restablecer" type="reset" value="LIMPIAR"/>
</fieldset>
</form>

</div></th>
</tr>
</table>
</div>
<p>&nbsp;</p></td>
<td width="4">&nbsp;</td>
</tr>

<tr>
<td height="25" colspan="3" bgcolor="#000000"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="30%" scope="col"><span class="Estilo1">WEBMASTER</span></th>
<th class="Estilo1" scope="col">LAYAPRODUCTIONS &copy;2010 PANAM&Aacute; </th>
<th width="30%" class="Estilo1" scope="col">[email protected]</th>
</tr>
</table></td>
<td bgcolor="#000000">&nbsp;</td>
</tr>
</table>

</body>
</html>
<?php
$nombre = $_POST['nombre'];
$correo = $_POST['correo'];
$asunto = $_POST['asunto'];

$header = 'From: ' . $correo . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

$mensaje = "Este mensaje fue enviado por... " . $nombre . " \r\n";
$mensaje .= "Su e-mail es: " . $correo . " \r\n";
$mensaje .= "Mensaje: " . $_POST['consulta'] . " \r\n";
$mensaje .= "Fue enviado... " . date('d/m/Y', time());

$para = "[email protected]";
$asunto .= $asunto;


mail($para, $asunto, utf8_decode($mensaje));
?>