Ich habe ein Problem mit dem Aufruf von Werten aus meiner Checkliste und zeige es in meinem fpdf-Formular.Anzeigen von Multiples Werte von Checkliste zu FPDF Formular mit PHP
Das ist mein fpdf_process.php:
<?php
if(!empty($_POST['btn_submit']))
{
$name= $_POST['name'];
$mobile = $_POST['mobile'];
$address = $_POST['address'];
}
require("fpdf/fpdf.php");
$pdf= new FPDF();
$pdf->Addpage();
$pdf->SetFont('Times',"", 12);
$pdf->Cell(0,10,"Welcome",1,1, 'C');
$pdf->Cell(40,10, "Name:", 0,0);
$pdf->Cell(50,10, "$name", 0,1);
$pdf->Cell(40,10,"Mobile:",0,0);
$pdf->Cell(50,10, "$mobile", 0,1);
$pdf->Cell(40,10,"Address:",0,0);
$pdf->Cell(50,10, "$address", 0,1);
if (!empty($_POST['language[]']))
{
foreach ($_POST['language[]'] as $selected)
{
$pdf->Cell(40,10,"$selected ", 0,1);
}
}
$pdf->output();
?>
Die ausgewählte Checkliste zeigt nicht in fpdf_process.php pdf
Bitte helfen Sie mir. Danke
Verwenden Sie http://php.net/manual/en/function.error-reporting.php Sie haben Fehler und das HTML (Formular) ist unbekannt. '$ _POST ['language []' genauer. –