Newer
Older
Graham Cole
committed
<?php
/* mechanism for members to give us feedback about web pages */
// where do website feedback mails go?
Graham Cole
committed
if ($session->loggedin) {
if ($_REQUEST["action"] == "feedback") {
$feedback = $_REQUEST["feedback"];
Graham Cole
committed
$msgbody = "{$session->username} had this to say about the page {$_SERVER['REQUEST_URI']}:\r\n\r\n";
$msgbody .= "\"{$feedback}\"\r\n";
mail($contact, "SUCS Website Feedback", $msgbody);
$smarty->assign("feedbacked", TRUE);
}