ya hice las correcciones y sigue igual incluso los mensajes me de envió no me los muestra y no es que no sepa html se a lo que e refieres pero ahora estay trabajando código php y diseño con css.
agrego mi codigo modificado:
Código PHP:
Ver original<?php
if(isset($_POST["Submit"])){ if($_POST["nombre"] == " "){
$errors[1] = "<span class='error'>Ingrese su nombre</span>";
}else if($_POST["email"] == '' or
!preg_match("/^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$/",$_POST["email"])){ $errors[2] = "<span class='error'>Ingrese un email correcto</span>";
}else if($_POST["asunto"] == " "){
$errors[3] = "<span class='error'>Ingrese un asunto</span>";
}else if($_POST["mensaje"] == " "){
$errors[4] = "<span class='error'>Ingrese un mensaje</span>";
}else{
$nombre = $_POST["nombre"];
$email = $_POST["email"];
$asunto = $_POST["asunto"]; //Asunto
$headers = "From:".$_POST["email"]."\r\n"; //Quien envia?
$headers .= "X-Mailer: PHP\r\n";
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-Type: text/plain"; //
$cuerpo .= "Este mensaje fue enviado por: " .$nombre. "\r\n";
$cuerpo .="Correo: ".$email."\r\n";
$cuerpo .= "Asunto: ".$asunto." \r\n";
$cuerpo .="Mensaje: ".$_POST['mensaje']." \r\n";
$cuerpo .= "Enviado el " . date('d/m/Y', time()); if(/*mail($dest,$asunto,$cuerpo,$headers)*/1==1){
$result = "<div class='result_ok'>Tu Mensaje fue enviado correctamente </div>";
// si el envio fue exitoso reseteamos lo que el usuario escribio:
$_POST["nombre"] = " ";
$_POST["email"] = " ";
$_POST["asunto"] = " ";
$_POST["mensaje"] = " ";
}else{
$result = "<div class='result_fail'>Hubo un error al enviar el mensaje </div>";
}
}
}else{echo 'no recibi submit';}
?>
<form id="form1" name="form1" method="post" action="contacto.php" style="position: absolute; left: 83px; top: 35px; height: 423px; width: 260px;" >
<p class="odessa">Nombre:</p>
<input type="text" class="nombre" name="nombre" size=38><?php echo $errors[1]; ?>
<p class="odessa">Email:</p>
<input type="text" class="email" name="email" size=38 ><?php echo $errors[2]; ?>
<p class="odessa">Asunto:</p>
<input type="text" class="asunto" name="asunto" size=38 ><?php echo $errors[3]; ?>
<br /><br />
<input name="Submit" type="image" value="Enviar" src="images/boton.png" width="70" height="70" hspace="108">
<p class="odessa" style="position: absolute; left: 433px; top: 100px; height: 69px;">Mensaje:<?php echo $errors[4]; ?></p>
<textarea class='mensaje' name="mensaje" cols="31" rows="10" id="mensaje" ></textarea>
<div class="odessa-error"><?php echo $result; ?></div>
<div class="tel">Telefonos: <strong>32851237</strong> - <strong>14915205</strong><br />
Next: <strong>1661-4518</strong> ID: <strong>92*15*68182</strong><br /> Next: <strong>1615-2069</strong> ID: <strong>62*987050*2</strong></div>
</form>