este es el codigo que e realizado pero me llega vacio los mensajes
Código PHP:
Ver original<?php
$nombre = $_POST['nombre'];
$mail = $_POST['mail'];
$telefono = $_POST['telefono'];
$localidad = $_POST['localidad'];
$depar = $_POST['depar'];
$asunto = $_POST['asunto'];
$texto = $_POST['texto'];
$header = 'From: ' . $mail . " \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: " . $mail . " \r\n";
$mensaje .= "Comentario: " . $_POST['Texto'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());
?>
Código HTML:
Ver original<form method="post" action="contact.html" onsubmit="return validacion(this)"> <input type="text" maxlength="30" size="40" name="nombre" class="input" value=""/></td> <input type="email" maxlength="30" size="40" name="email" class="input"/></td> <input type="number" maxlength="10" size="40" name="telefono" value="" class="input"/></td> <input type="text" maxlength="30" size="40" name="localidad" class="input"/></td>
<select class="input" name="depar"> <option selected="selected">Seleccione un Departamento
</option> <input type="text" maxlength="30" size="40" name="asunto" class="input"/></td> <textarea name="texto" class="input2" onClick='texto.value=""'>Escriba aqui su......
</textarea></td> <td><input type="submit" name="enviar" value="Enviar" style="padding:5px;" onclick="return validar(this.form);" /></td>
Muchas gracias a todos.