Jump to content

[SOLVED] recording ip addres problem


stubarny

Recommended Posts

Hi everyone,

 

I run two websites from the same host and both have the following code in a form to record the ip address of a user making a submission.

 

<INPUT TYPE=HIDDEN NAME="uip" VALUE="<?php echo "$REMOTE_ADDR"?>" readonly>

 

 

Strangely the code works on one website but gives an empty value on the other. The site that isn't working uses sessions - can this cause problems?

 

Any ideas why the code might not be working?

 

Thanks for your help!

 

Stewart

Link to comment
https://forums.phpfreaks.com/topic/42548-solved-recording-ip-addres-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.