Uso de diferentes css mediante cookie

From: Date: Thu, 23 Oct 2003 10:11:41 +0000
Subject: Uso de diferentes css mediante cookie
Groups: php.general.es 
Request: Send a blank email to general-es+get-41816@lists.php.net to get a copy of this message
Hola, tengo varios css que quiero seleccionar mediante cookies poniendo por defecto es estilo 0. El cambio no hago con un linkk a otra página en la que hago lo siguente: <?php if (@$HTTP_GET_VARS["estil"]=="") setcookie ("estil", "0"); else setcookie ("estil", @$HTTP_GET_VARS["estil"]); header("Location: index.php"); exit; ?> --------- El siguiente es el código que no funciona, cuando no he seleccionado un estilo no me pone la cookie a 0 por defecto. Alguna sugerencia? gracias <link rel="stylesheet" Type=text/css href="estil<?php if (isset($_COOKIE["estil"])){ echo $_COOKIE["estil"]; }else{ setcookie ("estil", "0"); echo $_COOKIE["estil"]; } ?>.css"> __________________________________________________ PolNetwork.com Pol Maresma i Oliveras pol@polnetwork.com - webmaster@santpol.org Creació, manteniment i allotjament de pàgines Web __________________________________________________ PRIVAT I CONFIDENCIAL - Aquest missatge i els document adjunts que pugui contenir són confidencials. Si no sou el destinatari del missatge no teniu permís per llegir-lo, copiar-lo ni reenviar-lo. Si heu rebut aquest missatge per error, siusplau comuniqueu-ho al remitent retornant el missatge i esborreu les còpies del missatge i els seus documents adjunts. Aquest avís no pot ser eliminat. PRIVATE & CONFIDENTIAL - This email message and attachments contain information that is confidential. If you are not the intended recipient, you are not permitted to use, copy or distribute the message and attachments in any manner. If you have received this email in error, please inform the sender by return email immediately and delete all copies of the message and its attachments. This notice should not be removed. __________________________________________________

« previous php.general.es (#41816) next »