Aghhh
Ive done it again......
I forgot to look at the forum title - I gave you the answer for Links2.
You will need to use:
# Add the record.
$input->{ID} = $id = $db->add ( $input );
if ($id) {
# Mail the message away.
$to = $CFG->{db_admin_email};
$from = $input->{'Contact_Email'};
$subject = "Addition to Database: $input->{'Title'}\n";
$host = defined $ENV{REMOTE_HOST} ? "$ENV{REMOTE_HOST} ($ENV{REMOTE_ADDR})" : 'none';
$refer = defined $ENV{HTTP_REFERER} ? $ENV{HTTP_REFERER} : 'none';
$newfield = $input->{'NewField'}; my $cfg = Links::Config::load_vars();
my %tags = ( Host => $host, Referer => $refer, Category => $cname,
NewField => $newfield);
$msg = GT::Template->parse ( $CFG->{admin_root_path} . '/templates/admin/email-val.txt', { %$input, %tags, %$cfg } );
Then add the newfield tag into the validation email text file.
Paul Wilson.
Installations: http://www.wiredon.net/gt/