"; exit; } //$sql = "select id from people where email='$email'"; /*$sql = "SELECT LAST_INSERT_ID()"; $result = mysql_query($sql, $conn); $row = mysql_fetch_assoc($result); $id = $row["LAST_INSERT_ID()"];*/ //------------------------------------------------------------------------- // Produce the invoice //------------------------------------------------------------------------- //------------------------------------------------------------------------- // Send the confirmation email //------------------------------------------------------------------------- $mail = new PHPMailer(true); try { $mail->SMTPDebug = 0; $mail->isSMTP(); $mail->Host = 'poczta1.mat.umk.pl;poczta2.mat.umk.pl'; $mail->SMTPAuth = true; $mail->Username = $mailName; $mail->Password = $mailPasswd; $mail->SMTPSecure = 'starttls'; $mail->Port = 587; $mail->setFrom('wors2019@mat.umk.pl', 'WORS 2019'); $mail->addAddress($email); $mail->addReplyTo('wors2019@mat.umk.pl', 'WORS 2019'); $mail->addCC('wors2019@mat.umk.pl', 'WORS 2019'); $mail->isHTML(true); $mail->CharSet = 'UTF-8'; $mail->Encoding = 'base64'; $mail->Subject = "WORS 2019 Registration"; $mail->Body = "Dear $title $fName $lName,

". "We confirm your registration to "; if($participation=="S") $mail->Body .= "First School on Reaction Systems, ". "which is to be held on June 3-5, 2019 in Toruń, Poland."; else if($participation=="W") $mail->Body .= "Second International Workshop on Reaction Systems, ". "which is to be held on June 5-7, 2019 in Toruń, Poland."; else if($participation=="B") $mail->Body .= "Second International Workshop on Reaction Systems". " and First School on Reaction Systems,". " which is to be held on June 3-7, 2019 in Toruń, Poland."; $mail->Body .= "

All the data you provided during registration is summarized below."; // Summary of all the data submitted during registration $mail->Body .= "

Registration data summary
". "". //"". "". "". "". "". "". //"". "". "". "". ""; else if($participation=="W") $mail->Body .= "Workshop"; else if($participation=="B") $mail->Body .= "School + Workshop"; $mail->Body .= "". "
Personal
E-mail$email
Title$title
First name$fName
Last name$lName
Gender"; if($gender=="M") $mail->Body .= "Male"; else $mail->Body .= "Female"; $mail->Body .= "
Affiliation
Affiliation$affiliation
Town$afTown
Country$afCountry
Participation in"; if($participation=="S") $mail->Body .= "School
Special requirements  $specialReqs
"; $mail->Body .= "

Looking forward to see you in Torun,
". "WORS 2019 Organizing Committee"; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } //------------------------------------------------------------------------- // Display the confirmation //------------------------------------------------------------------------- ?>

Your registration is now complete. The confirmation e-mail message has been sent to the address .

In case of any questions or problems feel free to ask wors2019(at)mat.umk.pl.

"; } if($email <> $emailConf) { $emailErr .= "E-mail addresses do not match
"; } if($email=="") $err=$err."    E-mail address
"; if($fName=="") $err=$err."    First name
"; if($lName=="") $err=$err."    Last name
"; if($gender=="") $err=$err."    Gender
"; if($affiliation=="") $err=$err."    Affiliation
"; if($afTown=="") $err=$err."    Affiliation/Town
"; if($afCountry=="") $err=$err."    Affiliation/Country
"; if($participation=="") $err=$err."    Participation type
"; if($rodoConf=="") $err=$err."    Agreement for data processing
"; //------------------------------------------------------------------------- // If there was no error display all the data for the confirmation //------------------------------------------------------------------------- if($err=="" && $emailErr==""){ ?>

You have entered the following data:

>Personal
>E-mail * >
>Title >
>First name * >
>Last name * >
>Gender * >
>Affiliation
>Affiliation * >
>Town * >
>Country * >
>Participation options   *
>
>Optional
>Special requirements >

Please correct the data in the registration form and submit it again.

"") echo "

The fields:
".$err."
are required.

"; if($emailErr<>"") echo "

$emailErr

"; } } ?> "" || $emailErr) { if($err=="" && $emailErr==""){ ?>

Please fill in the form below.
Fields marked with * are required.

>Personal
>E-mail * >
>Confirm e-mail * >
>Title >
>First name * >
>Last name * >
>Gender * > >Male     >Female
>Affiliation
>Affiliation * >
>Town * >
>Country * >
>Participation options   *
> >School     >Workshop     >School + Workshop
>Optional
>Special requirements >
> >   *    The above personal data may be processed by Nicolaus Copernicus University for the conference organization purposes according to Regulation of the European Parliament and Council of the European Union (EU) 2016/679 of 27 April 2016 with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/CE (see more).
> >
>