Gossamer Forum
Home : Products : DBMan : Customization :

&get_date in modify form

Quote Reply
&get_date in modify form
Here is the scoop: When someone adds a record, the date gets added in a hidden field (so they can't change it). Whenever someone modifies a record, I would like it to &get_date so I can have a "Last Modified" field instead of "Date Entered". I currently have it like so:
Code:
<input type="hidden" name="Date" value="$rec{'Date'}" size="12" maxlength="15">
That way they can't change the date to whatever they want. I tried this:
Code:
<input type="hidden" name="Date" value="&get_date" size="12" maxlength="15">
... but as you probably know, it didn't work because that sub function is in db.cgi instead of html.pl and & won't work within the quotes. So I tried copying the sub function to html.pl and using value="$get_date" which is probably the wrong way because it didn't work. I don't know much about perl, so I just guessed. =) Thanks for your help

Nelson
Subject Author Views Date
Thread &get_date in modify form Terium 1499 May 3, 2000, 12:36 PM
Post Re: &get_date in modify form
TheFew 1429 May 3, 2000, 12:46 PM
Post Re: &get_date in modify form
Terium 1431 May 3, 2000, 9:35 PM