recording ip address problem
Posted: Tue Mar 13, 2007 1:00 pm
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
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