This topic is locked

Default Values

7/7/2006 1:54:19 PM
PHPRunner General questions
A
Alan4573 author

Hi all,
I have a field in a table called Updated By.
I would like this to be auto populated with the username of the person who edits the record.

I guess I achieve this by entering the correct code in the Default Value box in the "Edit Format" part of Formatting (Step 7).
Unfortunately, I can't seem to make this work - any help would be greatly appreciated.
Thanks
Alan

D
Dale 7/8/2006

You should be able to use $_SESSION["UserID"] in the default value.
Also I noted a post on June 25, 2006 with a topic "Record added and modified".

There are others also if you do a search on the forum related to your question.

They may have some tips for you also.
Hope that helps.