<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Contactenos | Herramientas</title>
<!-- core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<!--[if lt IE 9]> -->
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<link rel="shortcut icon" href="images/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="images/ico/apple-touch-icon-57-precomposed.png">
</head><!--/head-->
<body class="homepage">
<?php require_once('cabecera.php'); ?>
<section id="feature">
<div class="container">
<div class="center">
<h1>Deje su mensaje</h1>
<h5>Escribanos, le responderemos a la brevedad</h5>
</div>
<div class="row">
<form id="main-contact-form" class="contact-form" name="contact-form" action="enviar.php" method="post">
<div class="col-sm-5 col-sm-offset-1">
<div class="form-group">
<label>Nombre *</label>
<input type="text" id="nombre" name="nombre" class="form-control" required="required">
</div>
<div class="form-group">
<label>Email *</label>
<input type="email" id="email" name="email" class="form-control" required="required">
</div>
<div class="form-group">
<label>Asunto *</label>
<input type="text" id="subject" name="subject" class="form-control" required="required">
</div>
<div class="form-group">
<label>Mensaje *</label>
<textarea name="mensaje" id="mensaje" required="required" class="form-control" rows="8"></textarea>
</div>
<div class="form-group">
<button type="submit" id="submit" name="submit" class="btn btn-primary btn-lg" required="required">Enviar Mensaje</button>
</div>
</div>
</form>
</div>
</div><!--/.container-->
</section>
<?php require_once('pie.php'); ?>
</body>
</html>
<?php $nombre = $_POST['nombre']; $email = $_POST['email']; $subject = $_POST['subject']; $mensaje = $_POST['mensaje']; $para = 'ando...@gmail.com'; echo "<script language='javascript'> alert('hola'); </script>"; $header = 'From: ' . $email; $msjCorreo = "Nombre: $nombre\n E-Mail: $email\n Asunto:\n $subject Mensaje:\n $mensaje"; echo "<script language='javascript'> alert('hola2'); </script>"; /*if ($_POST['submit']) { echo "<script language='javascript'> alert('hola3'); </script>"; if (mail($para, $subject, $msjCorreo, $header)) { echo "<script language='javascript'> alert('Mensaje enviado, muchas gracias.'); </script>"; } else { echo "<script language='javascript'> alert('fallado'); </script>"; } } */?>