include('user_inc.htm'); include('constants.htm'); $operation=""; if ($_SERVER['REQUEST_METHOD'] == "POST") { $url = $_REQUEST['url']; $notification->guid = 0; $notification->emailaddress = $_REQUEST['emailaddr']; $notification->alertlevel = (int)$_REQUEST['alertlevel']; $notification->enabled = true; //add the new email notification add_notification($user, $notification); $returnMessage= "A new email address has been successfully added. $notification->emailaddress will now receive email notifications."; } ?>