header ("Location: ./etat.php?total1=<?php \"$total1\"; ?>&total2=$total2&total3=$total3");
mais aucune valeur n'est renvoyé.header ("Location: ./etat.php?total1=<?php "$total1\"; ?>&total2=$total2&total3=$total3");$_SESSION["total1"]=$total1;
$_SESSION["total2"]=$total2;
$_SESSION["total3"]=$total3;
2page (ou je genere mon pdf)
$this->Cell($largeur[9],6,$_SESSION["total1"],1); //création d'une cellule //
$this->Ln(); //retour a la ligne //
$this->Cell($largeur[0]+$largeur[1]+$largeur[2]+$largeur[3]+$largeur[4]+$largeur[5]+$largeur[6]+$largeur[7]+$largeur[8],6,'TOTAL POUR LES KM DE 2001 A 10000',1); //création d'une cellule //
$this->Cell($largeur[9],6,$_SESSION["total2"],1); //création d'une cellule //
$this->Ln();retour
$this->Cell($largeur[0]+$largeur[1]+$largeur[2]+$largeur[3]+$largeur[4]+$largeur[5]+$largeur[6]+$largeur[7]+$largeur[8],6,'TOTAL POUR LE KM SUPERIEUR A 10000',1); //création d'une cellule //
$this->Cell($largeur[9],6,$_SESSION["total3"],1); //création d'une cellule //
header ("Location: ./etat.php?total1=$total1&total2=$total2&total3=$total3");
(Enfin, pourquoi vouloir une page intermédiaire ? Tu ne peux pas créer le PDF directement après avoir comparé tes variables ? $total1=$_GET['total1'];
$total2=$_GET['total2'];
$total3=$_GET['total3'];
$this->Cell($largeur[0]+$largeur[1]+$largeur[2]+$largeur[3]+$largeur[4]+$largeur[5]+$largeur[6]+$largeur[7]+$largeur[8],6,'TOTAL POUR LES KM JUSQU A 2000',1);
$this->Cell($largeur[9],6,$total1,1);
$this->Ln();
$this->Cell($largeur[0]+$largeur[1]+$largeur[2]+$largeur[3]+$largeur[4]+$largeur[5]+$largeur[6]+$largeur[7]+$largeur[8],6,'TOTAL POUR LES KM DE 2001 A 10000',1);
$this->Cell($largeur[9],6,$total2,1);
$this->Ln();
$this->Cell($largeur[0]+$largeur[1]+$largeur[2]+$largeur[3]+$largeur[4]+$largeur[5]+$largeur[6]+$largeur[7]+$largeur[8],6,'TOTAL POUR LE KM SUPERIEUR A 10000',1);
$this->Cell($largeur[9],6,$total3,1);
mais rien ne s'affiche dans les cellules lorsque mon pdf apparait.header ("Location: ./etat.php?total1=$total1&total2=$total2&total3=$total3");
Tu les as directement avec $total1, $total2, $total3... Il faut pas passer par le tableau _GETmysql_result($result_form, 0, "resultat")
et cela lui suffit pa bessoin du echo pour l'afficher.