I am using the short/long modification with great success. However, when trying to notify the administrator (without validation) that a record was added or modified, I get no information in the body of the email except:
The following new record has been added to the database:.
--
It worked fine without the short/long mod, so I expect it has something to do with the bolded section below.
I've search the forum and can't seem to find the solutions. Here's the mail routine:
my (%rec) = &get_record($in{$db_key});
open (MAIL, "$mailprog") || &cgierr("Can't start mail program");
print MAIL "To: $admin_email\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: $html_title New Record\n\n";
print MAIL "The following new record has been added to the database:\n\n";
foreach $col ($db_cols) {
print MAIL "$column: $rec{$column}\n"; }
close (MAIL);
Thanks in advance.
The following new record has been added to the database:.
--
It worked fine without the short/long mod, so I expect it has something to do with the bolded section below.
I've search the forum and can't seem to find the solutions. Here's the mail routine:
my (%rec) = &get_record($in{$db_key});
open (MAIL, "$mailprog") || &cgierr("Can't start mail program");
print MAIL "To: $admin_email\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: $html_title New Record\n\n";
print MAIL "The following new record has been added to the database:\n\n";
foreach $col ($db_cols) {
print MAIL "$column: $rec{$column}\n"; }
close (MAIL);
Thanks in advance.