diff --git a/kaform.js b/kaform.js index de56311..22d902c 100644 --- a/kaform.js +++ b/kaform.js @@ -200,11 +200,11 @@ function getRow(rid,num) { + `` + "" + "" - + '' + + `` + "" + "" + - ` diff --git a/submit.php b/submit.php index f83b63c..5ae97f9 100644 --- a/submit.php +++ b/submit.php @@ -7,8 +7,6 @@ require "PHPMailer/SMTP.php"; require "PHPMailer/Exception.php"; -var_dump($_POST); -die; #$CONVERT_CMD = "/usr/bin/pdftk"; @@ -232,7 +230,7 @@ function mkSnippedPdf($key){ $pdf->AddPage('L'); - $pos = array_search($key,array_keys($_POST['description']))+1; + $pos = array_search($key,array_keys($_POST['desc']))+1; @@ -241,7 +239,7 @@ function mkSnippedPdf($key){ # $mydesk = $_POST[desc][$key]; # $amount = $_POST['amount'][$key]; - $desc = $_POST['description'][$key]; + $desc = $_POST['desc'][$key]; $am = floatval(str_replace(",",".",$amount)); $am = str_replace(".",",",sprintf("%.2f",$am)); @@ -319,7 +317,7 @@ function mkTable(){ $html .= "$pos"; $html .= "".$_POST['date'][$key].""; - $html .= "".$_POST['description'][$key].""; + $html .= "".$_POST['desc'][$key].""; $am = floatval(str_replace(",",".",$val)); $am = str_replace(".",",",sprintf("%.2f",$am)); $html .= ''.$am." ".$_POST['currency'][$key]. ""; @@ -389,7 +387,7 @@ $file = $p; array_push($pdfs,$p); //var_dump($pdfs); -foreach ($_POST['description'] as $key => $val) { +foreach ($_POST['desc'] as $key => $val) { // echo "DREESK KEY VAL $key --> $val
"; $p = mkSnippedPDF($key); array_push($pdfs,$p);