website logo
Auteur
avatar
Guizmo

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


Posté : 27 août 2003 à 17:05 icone du post

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>";
}
}
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
https://www.npds.org/viewtopic.php?topic=7328&forum=5