Skip to content
Snippets Groups Projects
Commit 375a0b6d authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Put the submissions into a database

parent 4706af8d
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,14 @@ if (!empty($_POST)) {
}
if (empty($error_msg)) {
$mailer = new UNL_WDN_Emailer_Main();
// Put the stuff in the database
$name = mysql_real_escape_string($_POST['name']);
$email = mysql_real_escape_string($_POST['email']);
$query = "INSERT INTO registration (name,email) VALUES ('{$name}','{$email}')";
$result = mysql_query($query);
mysql_close($con);
$mailer = new UNL_WDN_Emailer_Main();
$body = '<h3>Thank you for your interest in volunteering for the May 11th Statewide Emergency Drill.</h3>';
$body .= '
<ul>
......@@ -41,7 +47,7 @@ if (!empty($_POST)) {
$mailer->to_address = $_POST['email'];
$mailer->from_address = $sendFromEmail;
$mailer->subject = $emailSubject;
$mailer->send();
//$mailer->send();
/*
// Setup email for UNL staff recipients
$mailer->html_body = $body;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment