website logo
Auteur
avatar
Jules

Forum » » Le coin des codeurs » » prbl de boucle


Posté : 27-08-2003 17:31 icone du post

Ce ne serait pas plutôt un truc comme ça ?


<?php
if ($ident=="login")
{
$tbnm= array();
$tbps= array();
$tbpg= array();
!!include!! ("config.php");
for($i=0; $i < $szn; $i++ )
{
if ($information1==$tbnm[$i] && $information2==$tbps[$i])
{
setcookie("ident","1",time()+3600);
echo "<script language='!!javascript!!'>window.location='$tbpg[$i]';</script>";
}
}

}

else
{
echo "<script language='!!javascript!!'>alert('Veuillez vous identifier pour accéder au site ');</script>";
echo "<script language='!!javascript!!'>window.location='$pg_def'; </script>";
}

?>

Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=7328&forum=5