This topic is locked

How to use Java Script / or PHP Variable

6/19/2006 8:02:16 AM
PHPRunner General questions
D
dieter author

I'd like to get the IP Adress of the client that calls the editpage.
There's in PHP a predefined Variable $REMOTE_ADDR.
is it possible to write the value of this Variable in a Field of the database ?
Dieter

W
wrjost 6/19/2006

Youn might want to check/Du solltest Dir mal anschauen:
http://www.xlinesoft.com/articles/system_access_lock.htm
...
Reagrds,

Wilfried

Alexey admin 6/19/2006

Dieter,
just put this to the Default value box for your field in Edit format dialog on the Formatting tab in PHPRunner:

$_SERVER["REMOTE_ADDR"]


Or put this code to one or both of Before record added and Before record updated events:

$values["FieldName"]="'".$_SERVER["REMOTE_ADDR"]."'";

D
dieter author 6/21/2006

Youn might want to check/Du solltest Dir mal anschauen:

http://www.xlinesoft.com/articles/system_access_lock.htm
...
Reagrds,

Wilfried


Thanks this works fine
Dieter