Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/04/2005, 17:33
luchope
 
Fecha de Ingreso: julio-2003
Ubicación: Colombia
Mensajes: 591
Antigüedad: 20 años, 9 meses
Puntos: 7
lo que tienes que hacer es invertir el html con el php....

Código PHP:
<?php
// page1.php
session_start();
echo 
'Welcome to page #1';
$_SESSION['favcolor'] = 'green';
$_SESSION['animal']  = 'cat';
$_SESSION['time']    = time();

// Works if session cookie was accepted
echo '<br /><a href="page2.php">page 2</a>';

// Or maybe pass along the session id, if needed
echo '<br /><a href="page2.php?' SID '">page 2</a>';
?> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body> 
</body>
</html>

esto es porque la sesion envia unos header, y tu al poner cualquier etiqueta html, o salto de linea, estas impidiendo que esa cabecera sea valida...


Chaop!