![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/12/2010, 03:54
|
![Avatar de efedefernan](http://static.forosdelweb.com/customavatars/avatar208344_5.gif) | | | Fecha de Ingreso: diciembre-2007 Ubicación: Cantabria
Mensajes: 91
Antigüedad: 17 años, 1 mes Puntos: 11 | |
Respuesta: PHP + Javascript ejemplo posible:
Código:
<?php $diasfestivos=array("lunes","jueves","sabado");?>
<script>
diasfestivos=new Array();
<?php for($a=0;$a<count($diasfestivos);$a++){ ?>
diasfestivos[<? echo $a; ?>]='<? echo $diasfestivos[$a];?>';
<?php } ?>
for(a=0;a<diasfestivos.length;a++)
{
alert(diasfestivos[a]);
}
</script>
|