This topic is locked

Variable Help

3/23/2009 10:01:56 AM
PHPRunner General questions
A
algreilly author

Hi,
In my program, I have a MemberMemo Field where I wish to populate the Date and Time and the username of the person entering the information.

My code looks like this:
Now() ; $_SESSION(Username)
The date and time show, but not the user name.
Thanks.

J
Jane 3/23/2009

Hi,
try to use this one:

Now().$_SESSION["UserID"]

A
algreilly author 3/23/2009

Jane,
Tried that with a period & comma - neither did work.
I am trying to put this in a field box - what else could I be doing wrong?
Al

Hi,

try to use this one:

Sergey Kornilov admin 3/23/2009

Al,
Do you use ASPRunnerPro or PHPRunner?

A
algreilly author 3/23/2009

PHP Runner
quote name='admin' date='Mar 23 2009, 12:47 PM' post='39345']

Al,
Do you use ASPRunnerPro or PHPRunner?

[/quote]

Sergey Kornilov admin 3/23/2009

In PHPRunner the following should work:

now().$_SESSION["UserID"]


Make sure you you use it as a default value.

A
algreilly author 3/23/2009

On My Visual Editor Page:
Text area
In default value I have now().$_SESSIION["UserID"] and it fails to a Parse error.

In PHPRunner the following should work:


now().$_SESSION["UserID"]


Make sure you you use it as a default value.

Sergey Kornilov admin 3/23/2009

You have double II in SESSIION

A
algreilly author 3/23/2009

my typo between two screens.
However, I have it exactly as you have it in the code - and I still get that error.

You have double II in SESSIION

Sergey Kornilov admin 3/23/2009

I recommend to post your application to Demo Account (use 'Demo Account' button on the last screen in program). Then open a ticket at http://support.xlinesoft.com sending your Demo Account URL for investigation.