Is it possible to get remote IP address in a hidden field?
-
Hi,
I need to create a hidden field which records the IP address of the visitor.
The reason is, I am using this together with a plugin which stores all of the captured CF7 fields efficiently in a database table. It can only record form fields, not email fields, so I cannot use the remote_IP field which CF7 offers.
So I am trying to work out if I could create a hidden field which uses the PHP variable, $_SERVER[‘HTTP_CLIENT_IP’], or something similar. I am comfortable with simple PHP, but this is beyond my knowledge.
(I am aware that users can spoof their IP address in this context but this is not a security issues in this case.)
I don’t necessarily need a complete answer, but any tips or pointers would be really helpful.
Thanks.
- The topic ‘Is it possible to get remote IP address in a hidden field?’ is closed to new replies.