smith@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

Go Back.
"; 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!
\n"; $flag = 1; if (!in_array($name,$wrong)) array_push($wrong,$name); } function errorf($name) { global $flag; global $wrong; // echo "$name not entered!
\n"; $flag = 1; if (!in_array($name,$wrong)) array_push($wrong,$name); } function display_error($name) { global $wrong; if (in_array($name,$wrong)) echo "*\n"; } ?>

Second Workshop on High-Resolution Marine Meteorology

Abstract Submission

" method="post" name="register">
Title
Affiliation"; display_error("Affiliation"); ?>
Presenting Author
Business Address
of Presenting Author
Email Address
of Presenting Author
Other Authors
separated by commas
Text of the Abstract
plaintext only, limit to 300 words


Problems? Email tes@coaps.fsu.edu with your browser version.

"; if (_db_rows($result) > 0) $val = 1; else $val = 0; return $val; } ?>