Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/05/2011, 05:57
rubenreno
 
Fecha de Ingreso: mayo-2011
Mensajes: 4
Antigüedad: 13 años
Puntos: 0
nuevo php, mensajes de error

Hola que tal, soy nuevo en php y estoy creando una página web utilizando el manual tan completo que teneis, despues de mucho pegarme e conseguido que funcione todo el engorro de php y apache utilizando foxserv, ectualmente estoy atascado con las sesiones en php, os pongo la salida en chrome o firefox y pego el código:

salida:

Warning: Cannot send session cookie - headers already sent by (output started at C:\FoxServ\www\quini\registro.php:1) in C:\FoxServ\www\quini\registro.php on line 1

Warning: Cannot send session cache limiter - headers already sent (output started at C:\FoxServ\www\quini\registro.php:1) in C:\FoxServ\www\quini\registro.php on line 1
La sesión actual es: 59d4463da673eaf5d39209f89dbf74bf

Excepto este código la página sale bien, tambien me funciona la variable que guardo y envio por sesion a la página destino.

código:

<?session_start();echo 'La sesión actual es: '.session_id();?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Documento sin título</title>
<link href="file:///C|/Users/valle/Desktop/ruben/quini/estilosquini.css"

rel="stylesheet" type="text/css">
<link href="estilosquini.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="env">
<div id="conten">
<p>&nbsp;</p>
<span class="titulo">REGISTRO DE USUARIOS
</span>
<form name="form1" method="post" action="registro2.php">
<label for="nombre">Nombre</label>
<input type="text" name="nombre" id="nombre">

<label for="contraseña">contraseña</label>
<input type="password" name="contraseña" id="contraseña">

<?php ; $prueba="hola mundo"; $_SESSION['saludo']=$prueba; ?>

<input type="submit" />
</form>
<p>&nbsp;</p>
</div>
</div>
</body>
</html>

PHP.ini esta guardado como ANSI, utilizo windows vista firefox3.0.
Si alguien ha tenido este problema o sabe como solucionarlo se lo agradecería