0
我試圖從while
發送所有id
s到FPDF:PHP的批量從而
while ($row=mysql_fetch_array($sql)){
$nummer = $row[nummer];
echo "$nummer <br>";
}
我正在,例如,5號:1,2,3,4,5。
我通過JavaScript發送這
print "<a href=javascript:go_there(\"$row[nummer]\")>Print</a>";
然後JavaScript的
<SCRIPT language="JavaScript">
<!--
function go_there(id)
{
var where_to= confirm("Download invoice");
if (where_to== true)
{
window.location="print.php?pump=" + id;
}
else
{
window.location="";
}
}
//-->
</SCRIPT>
的問題是,該文件print.php
只得到一個數字:
$pump = $_GET['pump'];
通常它發送一個號碼,我通過打印製作並打印我需要什麼。
現在我想要一個帶有五個數字的PDF文件,所以我不必打印五次。
希望你能幫上忙。
我想你想//你的JavaScript。 – will
你想通過GET傳遞數組嗎? –