firstname = ""; $this->lastname = ""; $this->title = ""; $this->email = ""; $this->affiliation = ""; } // sets up the mail and returns the string corresponding to the mail content function setupMail(){ // start mail text $mailText="Dear {$this->title} {$this->firstname} {$this->lastname},\nwe received your registration for the MAC Summer Workshop on July 14, 2010. Your details:\n\n"; // personal data $mailText=$mailText . " Title: {$this->title}\n"; $mailText=$mailText . " Name: {$this->firstname} {$this->lastname}\n"; $mailText=$mailText . " Affiliation: {$this->affiliation}\n"; $mailText=$mailText . " Email: {$this->email}\n"; $mailText = $mailText . "We are looking forward to seeing you at the Leibniz Supercomputing Centre in July.\n\n" . "Best,\n\n" . "Hans-Joachim Bungartz, Director, MAC"; return $mailText; } } if ($_POST["gesendet"]) { $newPerson = new Person(); // get information $newPerson->title = htmlspecialchars($_POST["title"]); $newPerson->firstname = htmlspecialchars($_POST["vorname"]); $newPerson->lastname = htmlspecialchars($_POST["nachname"]); $newPerson->affiliation = htmlspecialchars($_POST["affiliation"]); $newPerson->email = htmlspecialchars($_POST["email"]); // set up mail and compute total price $empftext = $newPerson->setupMail(); $email = 'weinzier@informatik.tu-muenchen.de, albers@zv.tum.de'; $headers = "MIME-Version: 1.0\r\n"; $headers .= 'From: ' . $email . "\r\n"; $subject = "[MAC - Opening Event] Registration"; // send mail to participant and organisation team echo "You will soon receive an E-mail with your registration.\n"; echo "Thank you for registering!\n"; mail($email, $subject, $empftext, $headers); mail($newPerson->email, $subject,$empftext,$headers); $writeInfo = fopen("SummerWorkshop2010.dat", 'a'); $wholeText = $newPerson->title . " " . $newPerson->firstname . " " . $newPerson->lastname . " " . $newPerson->affiliation . " " . $newPerson->email . "\n"; fwrite($writeInfo,$wholeText); fclose($writeInfo); } else { ?>

Munich Centre of Advanced Computing - Summer Workshop 2010 - July 14, 2010

Please fill in your personal data in the application form below.

Title:
Name:
First Name:
Affiliation:
E-mail:
Your personal data are only stored for the purpose of registration for the MAC opening event and will neither be used for any other purpose nor handed over to third parties.