Registrierung für die lange Nacht der Hochzeit '21') { $errors[] = "Falsches Ergebnis."; $url = 'http://www.langenachtderhochzeit.at'; echo ''; } else { $spamcheck = true; } if ($spamcheck == true) { $email = $_POST['email']; $_SESSION['ip'] = $_SERVER['REMOTE_ADDR']; // Überprüfung ohne DB if(strlen($email) < 1 ) { ?>

Die lange Nacht der Hochzeit am 9. November 2019 - Ganz Österreich wird zur Hochzeitslocation!

Sehr geehrte/r Herr/Frau $_POST[name],

Vielen Dank für Deine Registrierung! Bitte druck das PDF unbedingt aus, damit Du,
in den Genuß Deiner Angebote für Deine Hochzeit kommst!

Die lange Nacht der Hochzeit findet am 9. November 2019 von 18.00 - 24.00
in allen teilnehmenden Betrieben statt!

Liken Sie unsere Facebook Seite: www.facebook.com/langenachtderhochzeit

Wir wuenschen Dir viel Spass bei der langen Nacht der Hochzeit,

Ihr Organisationsteam

Bianca & Stefan Lehrner
LehrnerEvents
Himmelpfortgasse 20
1010 Wien
office@lehrner.events
www.lehrner.events

"; require_once(dirname(__FILE__)."/fpdf/tfpdf.php"); include 'align.php'; //Create new pdf file $pdf = new tFPDF( 'P', 'mm', 'A4' ); //Disable automatic page break $pdf->SetAutoPageBreak(false); //Add first page $pdf->AddPage(); $pdf->Image('LangeNachtPDF.png',35,20,-300); $pdf->SetFillColor(232, 232, 232); $pdf->SetFont('Arial','B','14'); $pdf->SetXY(20,30); $pdf->Ln(10); $pdf->Cell(0,5, "Gutscheine für das Bundesland ". $_POST[bundesland] ." für " . $_POST[vorname] . " " . $_POST[name] . " (Ticket ID: " . $newticket . ")", 0, 0,'C'); $pdf->SetXY(20,20); $pdf->SetTextColor(88, 89, 91); $pdf->Line(10, 35, 210-10, 35); // 20mm from each edge //set initial y axis position per page $y_axis_initial = 115; //print column titles $pdf->SetFillColor(232, 232, 232); $pdf->SetFont('Arial', '', 9); $pdf->SetY($y_axis_initial); $pdf->SetX(0); $pdf->Cell(10); $pdf->Cell(40, 6, 'Location', 1, 0, 'L', 1); $pdf->Cell(40, 6, 'Art', 1, 0, 'L', 1); $pdf->Cell(90, 6, 'Text', 1, 0, 'L', 1); $y_axis = $y_axis_initial + $row_height; //Select the Products you want to show in your PDF file /* mysql_query("SET NAMES 'utf8'", $db); $select = "SELECT * FROM ln_location, ln_location_vouchers WHERE ln_location.bundesland = '$_POST[bundesland]' and ln_location.id = ln_location_vouchers.loc_id"; $result = mysql_query($select, $db); //initialize counter $i = 0; //Set maximum rows per page $max = 25; //Set Row Height $row_height = 6; while($row = mysql_fetch_array($result)) { //If the current row is the last one, create new page and print column title if ($i == $max) { $pdf->AddPage(); //print column titles for the current page $pdf->SetFont('Arial', '', 9); $pdf->SetY($y_axis_initial); $pdf->SetX(0); $pdf->Cell(10); $pdf->Cell(40, 6, 'Location', 1, 0, 'L', 1); $pdf->Cell(40, 6, 'Art', 1, 0, 'L', 1); $pdf->Cell(90, 6, 'Text', 1, 0, 'L', 1); //Go to next row $y_axis = $y_axis + $row_height; //Set $i variable to 0 (first row) $i = 0; } $pdf->SetY($y_axis_initial); $location = $row['location']; $art = $row['head']; $text = $row['text']; $pdf->SetFont('Arial', '', 9); $pdf->SetFillColor(255, 255, 255); $pdf->SetY($y_axis + $row_height); $pdf->SetX(0); $pdf->Cell(10); $pdf->Cell(40, 6, $location, 1, 0, 'L', 1); $pdf->Cell(40, 6, $art, 1, 0, 'L', 1); $pdf->Cell(90, 6, $text, 1, 0, 'L', 1); //Go to next row $y_axis = $y_axis + $row_height; $i = $i + 1; } //$pdf->Line(10, 200, 210-10, 200); // 20mm from each edge $pdf->SetY(-35); // Select Arial italic 8 $pdf->SetFont('Arial','',9); // Print centered page number $pdf->Line(10, -35, 210-10, -35); $pdf->Cell(0,5,"WeddingCenter Wien" , 0, 0,'C'); $pdf->Ln(3); $pdf->SetFont('Arial','',8); $pdf->Cell(0,5,"Mag. Bianca Lehrner" , 0, 0,'C'); $pdf->Ln(3); $pdf->Cell(0,5,"Himmelpfortgasse 20 - 1010 Wien" , 0, 0,'C'); $pdf->Ln(3); $pdf->Cell(0,5,"Tel: +43 1 944 57 43 - office@weddingcenter.at - www.weddingcenter.at" , 0, 0,'C'); */ //$pdf->Output("freikarten/" . $_POST[vorname] .'-' . $_POST[name] .".pdf","F"); //$path ="freikarten/" . $_POST[vorname] .'-' . $_POST[name] .".pdf"; $pdf->Output(); //Send file require 'PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->IsSMTP(); $mail->Host = "server1.weddingcompany.eu"; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Username = "office@weddingcenter.at"; $mail->Password = "x93rbinc!"; $mail->Port = "465"; $mail->CharSet = 'utf-8'; $mail->SetLanguage ("de"); $mail->AddAttachment($path); $mail->From ='info@langenachtderhochzeit.at'; $mail->FromName = 'Die lange Nacht der Hochzeit'; $mail->addAddress('info@langenachtderhochzeit.at', 'Die lange Nacht der Hochzeit'); $mail->addAddress($_POST[email], $_POST[name]); $mail->IsHTML(true); $mail->Subject = $strSubject; $mail->Body = $strMailtext; if(!$mail->send()) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } else { echo 'Nachricht wurde gesendet. Sie sollten gleich eine E-Mail bekommen...'; $url = 'https://www.langenachtderhochzeit.at'; echo ''; } ?>

Die lange Nacht der Hochzeit
Aktion gesponsert von Weddingcenter.at

Für welches Bundesland möchten Sie Informationen erhalten?


Nachname

Vorname

E-Mail Adresse

Ergebnis 17 + 4 = ?



Achtung: Mit der Teilnahme an dieser Aktion bestätigen Sie Informationen zu der langen Nacht der Hochzeit zu erhalten. Sie benötigen eine gültige E-Mail Adresse, damit wir Informationen zusenden können...