Allora.... sulla prima pagina ho questo link che richiama lo script che creerà il pdf
test
il file genera_pdf.php è così:
Codice PHP:
class PDF extends FPDF
{
function Intestazione($stringa,$img){
//Image(string file, float x, float y [, float w [, float h [, string type [, mixed link]]]])
$this->Image('images/img.jpg',10,8,33);
//Move to the right
$this->Cell(80);
//Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, int fill [, mixed link]]]]]]])
$this->Cell($w[0],6,$stringa ,'1','C');
}
}
echo "STRINGA=".$stringa;
$pdf=new PDF();
$pdf->AddPage();
$pdf->Intestazione($stringa,$img);
$pdf->Output();
Io vorrei passare al file genera_pdf.php ad esempio il valore della variabile $stringa. Il valore è passato, poichè viene stampato nel browser, però la funzione Intestazione non stampa il valore, il pdf è vuoto.... perchè ?