ok je v voir.
Dans mon fichier recherche.php, j'avais fait ca
// recherche selon les critères
session_start();
$loginOK = false;
include("connexion.php");
$table="débiteur";
if ( isset($_POST) )
{
extract($_POST);
if (empty($_POST['dossier_crx']))
{
if (!empty($_POST['nom']))
{
$sql = "SELECT * FROM $table WHERE nom= '".addslashes($nom)."'";
$req = mysql_query($sql) or die('Erreur SQL : <br />'.$sql);
if (mysql_num_rows($req) > 0)
{
$data = mysql_fetch_assoc($req);
$loginOK = true;
mysql_close ();
}
}
else
{
$sql = "SELECT * FROM $table WHERE tel_portable= '".addslashes($tel_portable)."'";
$req = mysql_query($sql) or die('Erreur SQL : <br />'.$sql);
if (mysql_num_rows($req) > 0)
{
$data = mysql_fetch_assoc($req);
$loginOK = true;
mysql_close ();
}
}
}
else
{
$sql = "SELECT * FROM $table WHERE dossier_crx= '".addslashes($dossier_crx)."'";
$req = mysql_query($sql) or die('Erreur SQL : <br />'.$sql);
if (mysql_num_rows($req) > 0)
{
$data = mysql_fetch_assoc($req);
$loginOK = true;
mysql_close ();
} }
//redirection selon la recherche
if ($loginOK)
{
$_SESSION['dossier_crx']= $data['dossier_crx'];
$_SESSION['loginOK'] = $loginOK;
?>
<html>
<head>
<title></title>
<meta http-equiv="refresh" content="0 ; url=fiche_débiteur.php">
</head>
<body>
</body>
</html>
<?
}
else
{
?>
<html>
<head>
<title></title>
<meta http-equiv="refresh" content="0 ; url=rech_dossier.php">
</head>
<body>
</body>
</html>
<?
}
<?
QUAND PENSEZ VOUS????????