我想问一下如何在pdf.php上输出rect。值为F或D,具体取决于用户输入
例如,我有询问性别的表单。如果用户选择男性,则D将变为F
$pdf->Rect(126, 35.5, 3, 3, 'D', array('all' => $gariskecil));当用户选择female时,第二个rect变为F
$pdf->Rect(136, 35.5, 3, 3, 'D', array('all' => $gariskecil));发布于 2021-04-12 10:53:45
通过js事件监听器、jquery或php表单设置性别
例如,使用php post方法form
$gender = $_POST['gender'];然后将其应用于您的fpdf
$pdf->Rect(136, 35.5, 3, 3, $gender, array('all' => $gariskecil));https://stackoverflow.com/questions/67051565
复制相似问题