Bueno yo hice lo que nuestro amigo Juanma nos pueso
lo hice !! pero yo no cree una hoja htlm si no k lo aderi a una que ya tenia pero el punto es que lo puse y modifique algunas cositas MIREN !!
Código:
<form action="formulario.php" method="post" enctype="multipart/form-data" name="form1">
<table border="0">
<tr>
<td width="200"><div align="right" class="Estilo2">
<p class="Estilo2">Nombre</p>
</div></td>
<td width="200"><div align="left">
<label>
<input name="nombre" type="text" id="nombre" size="45" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right">
<strong class="Estilo2">Empresa[/b]</p>
</div></td>
<td><div align="left">
<label>
<input name="empresa" type="text" id="empresa" size="45" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right" class="Estilo2">
Comentarios</p>
</div></td>
<td><div align="left">
<label>
<textarea name="comentarios" cols="40" rows="5" id="comentarios"></textarea>
</label>
</div></td>
</tr>
<tr>
<td><div align="right" class="Estilo2">
E-mail</p>
</div></td>
<td>
</p>
<input name="email" type="text" id="email" size="45" />
</p></td>
</tr>
<tr>
<td><div align="right">
<input name="restablecer" type="reset" id="restablecer" value="Restablecer" />
</div></td>
<td><div align="left">
<input name="Enviar" type="submit" id="Enviar" value="Enviar" />
</div></td>
</tr>
</table></form>
y cree una oja php con el nombre formulario.php y ai puse esto !!!!
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>formulario</title>
<?php
$sendTo = "ventas@maquiprocesos.com";
$subject = "mensajes desde la pagina";
$nombre = $_POST["nombre"];
$titulo = $_POST["empresa"];
$guia = $_POST["comentarios"];
$email = $_POST["email"];
$headers .= "";
$message = "Nombre" . $nombre . "\nEmpresa" . $empresa . "\nComentarios" . $comentarios . "\nEmail" . $email;
mail($sendTo, $subject, $message, $headers);
?>
<style type="text/css">
<!--
.a {
font-size: 18px;
}
.s {
font-family: "Times New Roman", Times, serif;
font-weight: bold;
text-align: center;
}
-->
</style>
</head>
<body class="a">
<span class="s"> su mensaje ha sido enviado...</span>
</body>
</html>
y bueno como podran ver en la pagina
http://www.maquiprocesos.com/contacto.html
envian su mensaje y sale mensaje enviado y todo perfecto !!
pero cuando recivo el mensaje solo me salen estos datos !!!!
[/code]
QUE HICE MAL ??? O QUE ME FALTA MODIFICAR !!! AYUDA SIIIIIIII!!
GRACIAS POR TODO !!