require_once("scripts/functions.db.php"); $wrong = array(); $flag = 0; $from = "smith@coaps.fsu.edu"; $to = "smith@coaps.fsu.edu"; $conference = "Second Workshop on High-Resolution Marine Meteorology"; $date = "April 15th and 16th"; $contact = "Shawn Smith at:\tsmith@coaps.fsu.edu"; $conference_link = "http://" . get_cfg_var("host_coaps") . "/RVSMDC/marine_workshop2"; $link = _db_connect(); if ($_REQUEST["submit"]) { foreach ($_REQUEST as $k=>$v) $$k = $v; if (!$title) errorf("Title"); if (!$addy1) errorf("Address"); if (!$abstract) errorf("Abstract"); if (!$presenting_author) errorf("Presenting Author"); if (!eregi("^[(\.)_a-z0-9-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$", $email)) errori("Email"); if ($flag == 0) { $query = "INSERT INTO abstract ("; $address = "$addy1\n$addy2\n$addy3"; foreach ($_REQUEST as $k=>$v) if ($k != "PHPSESSID" && $k != "submit" && !eregi("addy", $k)) $query .= "$k, "; $query = substr($query, 0, -2).", address) VALUES("; foreach ($_REQUEST as $k=>$v) if ($k != "PHPSESSID" && $k != "submit" && !eregi("addy", $k)) $query .= "\"$v\", "; $query = substr($query, 0, -2).", \"$address\")"; //echo $query; _db_query($query); _db_close($link); $subject = "\tA new abstract has been submitted, here is the relevant information.\n"; foreach ($_REQUEST as $k=>$v) { if ($k == "addy3") $subject .= "\nAddress:\n$addy1\n$addy2\n$addy3\n"; if ($k != "PHPSESSID" && $k != "submit" && !ereg("addy", $k)) $subject .= ucwords(eregi_replace("_"," ",$k)).": $v\n"; } $subject .= "\n\nPlease go to here to see a list of all abstracts.\n"; $temp = explode(" ", $presenting_author); mail($to, "New $conference abstract submitted", $subject, "From: $from\r\nReply-To: $from\r\n"); // make sure they're registered first before they submit an abstract $message = "Thank you $presenting_author for submitting an abstract for the $conference!\n\n". "\tDon't forget, the workshop is $date.\n"; $message .= "\nIf you haven't yet registered, please go here to do so. \n"; $message .= "\nIf you have questions or comments, please email $contact.\n"; echo "
$message"; mail($email, "Thank you for submitting an abstract for the $conference", $message, "From: $from\r\nReply-To: $from\r\n"); return; } } function errori($name) { global $flag; global $wrong; // echo "$name incorrectly entered!
Go Back.
Second Workshop on High-Resolution Marine Meteorology
Abstract Submission