When a user updates a page on my site, I would like the site to send me an email letting me know that an update has occurred.
I've tried inserting this code into the update record php but have been unsuccessful.
PHP Code:
$sendto = "email@address.com";
if ($_POST) {
while(list($key,$val)=each($_POST))
{
if ($key!="submit") {
$formdata .= "$key: $val\n";
}
}
mail("$sendto","Monday Classes Updated","An Admin ($REMOTE_ADDR) Has updated the Monday class schedule. Here are the details:\n\n$formdata","FROM: $sendto");
exit;
}