Gossamer Forum
Home : Products : DBMan : Customization :

Updating date

Quote Reply
Updating date
I am looking for a way to apply the current date to modified entries. Anyone know how to do this?

Quote Reply
Re: Updating date In reply to
In sub html_modify_form_record, just after

my (%rec) = &get_record($in{'modify'});

add:

$rec{'Date'} = &get_date;

This will automatically change the field called 'Date' to the current date. Change the field name to match that which you use in your database.

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Updating date In reply to
Thanks for the modification fix - I too was looking for the same thing and worked on it casually for an hour or so and got nowhere. You solution is simple and elegant - I just tried it and it works great.