Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/03/2010, 13:52
thi
 
Fecha de Ingreso: abril-2009
Mensajes: 244
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: Php y cookies

Gracias unrealman2023, me ha funcionado de la siguiente forma:

<?php
$valor=(int)$_COOKIE['visitas']+1;
setcookie("visitas", $valor, time()+3600,"/","");
?>

<?php
if ($valor==1)
{
?>
<script language='JavaScript' type='text/javascript'>
window.open("/consejos.php",'Consejos','width=500,height=350,lef t=370,top=170');
</script>
<?php
}
?>