Ver Mensaje Individual
  #9 (permalink)  
Antiguo 17/03/2011, 09:15
lambdavi
 
Fecha de Ingreso: marzo-2009
Mensajes: 83
Antigüedad: 16 años
Puntos: 2
Respuesta: session y css (URGENTE)

esto es lo q tengo, muchas gracias por tomaros las molestias:

Código PHP:
<?php
session_start
();

if(!isset(
$_SESSION['usuario'])){
    echo 
"<script type='text/javascript'>alert('No estás validado');</script>";}
?>

<!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/htm l; charset=utf-8" />
<link rel="StyleSheet" href="estilosAdmin.css" type="text/css" media="screen" />
Me planteo (será q después de comer pienso más), q en vez de marear mucho con este tema igual sabeis de alguna forma más sencilla (o q funcione) de validar q un usuario está activo para navegar por una página. GRACIAS!!