diff --git a/ka.html b/ka.html index 093683f..391cd24 100644 --- a/ka.html +++ b/ka.html @@ -98,15 +98,16 @@ - - - diff --git a/submit.php b/submit.php index a3e0607..ec37727 100644 --- a/submit.php +++ b/submit.php @@ -36,6 +36,9 @@ class kaformPDF extends TCPDF { }; function mkFrontPDF(){ + $comments = str_replace("\n","
",$_POST[comments]); + $bankaddress = str_replace("\n","
",$_POST[bankaddress]); + $address = str_replace("\n","
",$_POST[address]); $account_owner = $_POST[owner]; if (!$account_owner) $account_owner = $_POST[realname]; @@ -45,11 +48,24 @@ function mkFrontPDF(){ $aw = "EU-Banküberweisung"; $aw_details = " Kontoinhaber: $account_owner
+ IBAN: $_POST[IBAN]
+ BIC: $_POST[BIC]
+ Bank: $_POST[Bankname]

+ Anmerkungen:
$comments
"; break; - case "NonEU": + case "Non-EU": $aw = "Non-EU-Banküberweisung"; + $aw_details = " + Kontoinhaber: $account_owner
+ IBAN: $_POST[IBAN]
+ BIC: $_POST[BIC]
+ Bank: $_POST[Bankname]

+ Bankanschrift:
$bankaddress

+ Anschrift des Empfängers:
$address

+ Anmerkungen:
$comments
+ "; break; } @@ -244,7 +260,13 @@ $pdfs = array(); // Applicatoin starts here +echo "Making Fromt PDF
"; + $p = mkFrontPDF(); + +echo "Did Making Fromt PDF
"; + + array_push($pdfs,$p); foreach ($_POST['desc'] as $key => $val) {