Gossamer Forum
Home : Products : DBMan : Customization :

get_time on modification page?

Quote Reply
get_time on modification page?
Hi all, is it possible to show the current time on the modification page? I have created a field called "Time_Stamp" in default.cfg and added this statement after

my ($status, $line, @lines, @data, $output, $found, $restricted); in db.cgi

$timestamp = &get_time;

$in{'Time_Stamp'} = $timestamp;

but it does not pull up current time in the input field in the modification page.

Any help would be great! Thanks

Quote Reply
Re: [kothi] get_time on modification page? In reply to
In html.pl, sub html_modify_form_record, just after the line that starts with

if (!%rec) { &html_modify_failure(

add

$rec{'Time_Stamp'} = &get_date; # Last modified date

This and other tips can be found in the FAQ noted below.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [kothi] get_time on modification page? In reply to
Works good. Thanks!