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:
That way they can't change the date to whatever they want. I tried this:
... 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
Code:
<input type="hidden" name="Date" value="$rec{'Date'}" size="12" maxlength="15">Code:
<input type="hidden" name="Date" value="&get_date" size="12" maxlength="15">Nelson