Ver Mensaje Individual
  #7 (permalink)  
Antiguo 28/07/2009, 15:51
Melsan
 
Fecha de Ingreso: marzo-2005
Mensajes: 120
Antigüedad: 19 años, 1 mes
Puntos: 1
Respuesta: Validar política de privacidad

Lo siento por más que lo intento soy incapaz de incluir el if, me podéis ayudar este es mi código.

Intento incluir el if y se desmorona todo

<?php
$contenido="Contacto desde Casa Rural La Vega";

foreach($HTTP_POST_VARS as $name => $value)
{
$contenido.="\r\n · ".$name.": ".$value." ";
}


$cabeceras .= "From: ".$_POST['email']."\r\n";
mail("[email protected]","Contacto".date("d/m/Y H:i:s"),$contenido,$cabeceras);

?>

<!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=iso-8859-1" />
<title>Casa Rural La Vega</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #B19161;
}
.textos {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #671B26;
text-align: justify;
}
.pie { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
}
-->
</style>
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</head>

<body background="imagenes/fondo.gif">
<table width="416" border="0" height="556">
<tr>
<td height="17">&nbsp;</td>
</tr>
<tr>
<td colspan="3"class="textos" height="20" width="63%">
<p align="center"><img src="imagenes/linea-sup.jpg" width="434" height="15"></p>
</td>
</tr>
<tr>
<td class="textos" height="405" width="63%">
<table width="100%" border="1" cellpadding="5" cellspacing="0" bordercolor="#B19161">
<tr>
<td height="141" bordercolor="#FFFFFF">
<div align="center" class="Estilo2">
<div align="center">
<p><strong><font size="2">Hemos recibido su consulta correctamente.</font></strong><font size="2"><br />
<br />
<em>Muchas gracias por confiar en la Casa Rural La Vega</em>
</font></p>
<p><font size="2"> en breve nos pondremos
en contacto con usted.</font></p>
</div>
</div>
</td>
</tr>
</table>
</tr>
<tr>
<td class="textos" height="2" width="63%"><img src="imagenes/separador02.gif" width="434" height="4">
</tr>
</table>
</body>
</html>