Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\fotofarra\contacto.php:1) in C:\AppServ\www\fotofarra\contacto.php on line 2
sin embargo esta todo como debe.. el seesion arriba de todo.. mi codigo esta asi.
Código PHP:
<?
session_start();
include('config.php'); //incluimos el config.php que contiene los datos de la conexión a la db
?>
<!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>.:: Foto Farra - Contacto/Sugerencia ::.</title>
<link href="web.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.Estilo1 {color: #99CCFF}
.Estilo2 {color: #393939}
-->
</style>
</head>
<body>
<div id="cuerpo">
<!-- CABECERA -->
<div id="cabecera">
<!-- MENU -->
<div id="menu">
<ul>
<? include('inc_menu.php'); ?>
</ul>
</div>
<a href="index.php"><img src="img/titulo.jpg" /></a> </div>
<!-- CONTENIDO -->
<div id="contenido">
<div id="izquierda">
<div>
<? include('inc_login.php'); ?><br />
</div>
<div>
<? include('inc_contador.php'); ?>
</div>
<h1><span class="Estilo2">Categorias</span><span class="Estilo1">.</span></h1>
<div id="nav">
<ul>
<? include('inc_categorias.php'); ?>
</ul>
</div>
<br>
<div id="derecha">
<h1><span class="Estilo2">Ultimas Fotos</span><span class="Estilo1">.</span></h1>
<? include('inc_ultimas_fotos.php'); ?>
</div>
</div>
<div id="centro">
<h1><span class="Estilo2">Contacto/Sugerencias</span><span class="Estilo1">.</span></h1>
<div id="abaxd">
<p align="center"><font color="#3499ff">Por Favor no dude en contactarnos, preguntarnos, o mejor aun sugerirnos ideas para mejorar el sitio web. Lo responderemos en la brevedad posible.</font></p>
<div class="clear"></div>
<?
$cont=$_GET['cont'];
if ($cont == si)
{
echo "<p align='center'>---Mensaje Enviado Exitosamente---</p>";
}
else
{
echo "";
}
if ($cont == no)
{
echo "<p align='center'>---Error Al Enviar Mensaje---</p>";
}
else
{
echo "";
}
?>
<form action="contacto_si.php" method="post" name="form1">
<table border="0" align="center">
<tr>
<td align="right">Nombre:</td>
<td align="left"><input class="text_con" name="nombre_contacto" id="nombre_contacto" type="text" maxlength="100" /></td>
</tr>
<tr>
<td align="right">Mail:</td>
<td align="left"><input class="text_con" name="mail_contacto" id="mail_contacto" type="text" maxlength="100" /></td>
</tr>
<tr>
<td align="right">Asunto:</td>
<td align="left"><input class="text_con" name="asunto_contacto" id="asunto_contacto" type="text" maxlength="100" /></td>
</tr>
<tr>
<td align="right">Asunto:</td>
<td align="left"><textarea class="textarea_con" name="mensaje_contacto" rows="5" id="mensaje_contacto" type="text"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><font size="-1">Todos Los Campos Requeridos</font></td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="center"><input class="submit" type="submit" name="contacto" value="Enviar Mensaje" /></td>
</tr>
</table>
</form>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div>
<div id="pie">
<p>© 2007 FotoFarra - Diseñado por <a href="http://www.ndmsolutions.com" target="_blank"><img src="img/ndmsolutions.gif" /></a> </div>
</div>
</body>
</html>