gracias goya mira te remito donde esta el formulario (contacto.html)y el otro que es envio.php
<html>
<head>
<LINK REL=stylesheet HREF="miestilo.css" TYPE="text/css">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>Software a su medida : Contactenos </title>
<style type="text/css">
input { font-family: Tahoma, Verdana, Arial; font-size: 11px;
color: #FFFFFF; background-color: #6699CC; border: #000099;
border-style: solid; border-top-width: 1px; border-right-width: 1px;
border-bottom-width: 1px; border-left-width: 1px}
select { font-family: Tahoma, Verdana, Arial; font-size: 11px;
color: #FFFFFF; background-color: #6699CC; border: #000099; border-style: solid;
border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px;
border-left-width: 1px
}
textarea { font-family: Tahoma, Verdana, Arial; font-size: 11px;
color: #FFFFFF; background-color: #6699CC; border: #000099;
border-style: solid; border-top-width: 1px; border-right-width: 1px;
border-bottom-width: 1px; border-left-width: 1px}
select { font-family: Tahoma, Verdana, Arial; font-size: 11px;
color: #FFFFFF; background-color: #6699CC; border: #000099; border-style: solid;
border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px;
border-left-width: 1px
}
</style>
</head>
<body background-color: #BC8F8F >
<h1 id="logo"> Consultorias SIG<span></span></h1>
<h2>
<div id="tabsF">
<ul>
<li><a href="index.html" title="Pagina Principal"><span>Inicio</span></a></li>
<li><a href="servicios.html" title="Servicios que ofrecemos"><span>Servicios</span></a></li>
<li><a href="clientes.html" title="Clientes mas importantes"><span>Clientes</span></a></li>
<li><a href="contactos.html" title="Comuniquese con nosotros"><span>Contáctenos </span></a></li>
</ul>
</div>
</h2>
<div id="contec">
<div id="contacto1" >
<form name="frm" method="post" action="envio.php">
<fieldset id="form">
<legend>Envienos su Mensaje</legend>
<ol>
<li><label>Nombre: </label><input type="text" name="nombre" size="60" value ="numbri_ductur"/></li>
<li><label>Dirección: </label><input type="text" name="direccion" size="60" value ="ubicatishosss"/></li>
<li><label>E-mail: </label><input type="text" name="email" size="60" value =" @hotmail.com" /></li>
<li><label>Telefono: </label><input type="text" name="telefono" size="25" value ="Telejono"/></li>
<li><label>Empresa: </label><input type="text" name="empresa" size="60" value ="Empressssa"/></li>
<li><label>Ciudad: </label><input type="text" name="ciudad" size="60" value ="Cidudad"/></li>
<li><label>Comentarios: </label>
<textarea id="textarea_comunicacion" name="mensaje" rows="3" cols="60">Escribe aquí tus comentarios</textarea> </li>
<!-- <input type="text" name="fcomentarios" size="25" /></li> -->
</ul>
<p align="center"><input type="submit" name="submit" class="btn" value="Enviar" /></p>
</fieldset>
</FORM>
<!-- <div style="background: url(/images/menus.png) no-repeat;width:540px;height:499px"> -->
</div>
<div id="datos" >
Copyright © 2009 Consultoria SIG - Peru
</div>
</div>
</body>
</html>
******************** ahora ta el envio.php
<?
// definimos las variables o marcamos el error
if ( !empty($_POST['nombre']) ) $nombre = $_POST['nombre']; else $error = true;
if ( !empty($_POST['direccion']) ) $direccion = $_POST['direccion']; else $error = true;
if ( !empty($_POST['email']) ) $email = $_POST['email']; else $error = true;
if ( !empty($_POST['telefono']) ) $telefono = $_POST['telefono']; else $error = true;
if ( !empty($_POST['empresa']) ) $empresa = $_POST['empresa']; else $error = true;
if ( !empty($_POST['ciudad']) ) $ciudad = $_POST['ciudad']; else $error = true;
if ( !empty($_POST['mensaje']) ) $mensaje = $_POST['mensaje']; else $error = true;
// verificamos que no exista un error
if ( !empty($error) ) {
header( 'Location: contacto_error.php' );
die;
}
// definimos el cuerpo del email
$cuerpo = "Formulario enviado\n";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["email"] . "\n";
$cuerpo .= "Direccion: " . $HTTP_POST_VARS["direccion"] . "\n";
$cuerpo .= "Telefono: " . $HTTP_POST_VARS["telefono"] . "\n";
$cuerpo .= "Empresa: " . $HTTP_POST_VARS["empresa"] . "\n";
$cuerpo .= "Ciudad: " . $HTTP_POST_VARS["ciudad"] . "\n";
$cuerpo .= "Comentarios: " . $HTTP_POST_VARS["mensaje"] . "\n";
// enviamos el email
if ( mail( '
[email protected]', 'Recibiste un mensaje a través del formulario de contacto de tu sitio',$cuerpo ) ) {
header( 'Location: contacto_exitoso.php' );
die;
} else {
header( 'Location: contacto_error.php' );
die;
}
?>
*****************
Ahora todo esto si me funciona cuando estoy de modo local, pero cuando lo subo a mi pagina no funca....
gracias
saludos cordiales