![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
exlplico
tengo 2 paginas en php que se llaman
consulta.php donde esta el formulario donde se llenan los datos
contacscript.php donde esta el codigo
[CENTER]Consulta.php[/CENTER]
<form name="form" method="post" action="contactscript.php" OnSubmit="return validar(this)">
<input name="name" type="text" value="" size="25" maxlength="100">
</div></td>
<input type="text" name="email" size="25" maxlength="100" />
<select name="selecionar">
<option selected>----- Elija una opcion -----</option>
<option value="Soporte Tecnico">Soporte Tecnico</option>
<option value="Redes y Conectividad">Redes y Conectividad</option>
<option value="Hosting y Dominio">Hosting y Dominio</option>
<option value="Diseño Web">Diseño Web</option>
<option value="Mailing">Mailing</option>
<option value="Otros Servicios">Otros Servicios</option>
</select>
<select name="publicidad">
<option selected>----- Elija una opcion -----</option>
<option value="deremate.com.pe">deremate.com.pe</option>
<option value="paginasamarillas.com.pe">paginasamarillas.c om.pe</option>
<option value="Diario el Comercio">Diario el Comercio</option>
<option value="Recomendacion">Recomendacion</option>
<option value="Otros medios">Otros medios</option>
</select>
<textarea name="msg" cols="23" rows="6"></textarea>
<input name="Submit" type="submit" value="Enviar" />
<input type="reset" name="Reset" value="Borrar" />
</p>
</form>
<?php
// headers for the email listed below
$headers .= "From: $name <$email>\n";
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
$recipient = "micorreo";
$subject = "$selecionar";
$msg = "
Medio de Contacto: ".$publicidad."
Consulta: ".$msg."";
mail($recipient, $subject, stripslashes($msg), $headers);
header("location: enviado.php");
?>