Forum » » Le coin des codeurs » » prbl de boucle
Posté : 27-08-2003 17:05 
voici mon code il marche mais meme lorsque c le bon login la personne est renvoyé au debut c un prbl de { je pense
<?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>";
<
BR> }
}
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