This topic is locked
[SOLVED]

 username as default value in a text field

4/21/2010 11:29:55 AM
PHPRunner General questions
T
troyy0206 author

Looked around for this for a while, but can't seem to find it. I have a text field in a form that I would like to make the default value the user login name of the person that is logged on. I thought I could just add $username to the default value setting in the field details but I can't get it to work.

Admin 4/21/2010

PHPRunner manual is often the best place to start:

http://xlinesoft.com/phprunner/docs/_edit_as__settings.htm#textfield

Default value

now() - current datetime
$_SESSION["UserID"] - user id of person who updated the record
$_SERVER['REMOTE_ADDR'] - IP address

T
troyy0206 author 4/21/2010



PHPRunner manual is often the best place to start:

http://xlinesoft.com/phprunner/docs/_edit_as__settings.htm#textfield


Dang...syntax...thanks.