Searched very quickly the net but no easely explained answers to why.
In the php feedback form action there is a line that tracks the persons ip adress. With me there is never an adress given.
All the other results (name, email,… even the captcha code the person typed) are fine.
example result of contact:
naam: Nescio
voornaam: Nomen
adres: Xxxx
postnummer: Xxxx
gemeente: XXXX
mail: email@hidden
telefoon:
vraag: xxxxx
captcha code: hfuzBt
IP address=
I added a fallback for the IP address a while ago that attempts to get the address in another way should the default code fail. If you are still having problems after using this version then send me an email directly and I’ll see if there is anything further I can do to get this to work on your server.
Regards,
Tim.
On 3 Sep 2012, at 10:02, Agent 1266 wrote:
In the php feedback form action there is a line that tracks the persons ip adress. With me there is never an adress given.
Tim, some servers still (in this day and age) run PHP in CGI mode. The environment variables available to PHP in that setting are seriously limited. Not sure if this relates to the OP, but it might – sounds just weird enough to be true.
I added a fallback for the IP address a while ago that attempts to get the address in another way should the default code fail. If you are still having problems after using this version then send me an email directly and I’ll see if there is anything further I can do to get this to work on your server.
Regards,
Tim.
On 3 Sep 2012, at 10:02, Agent 1266 wrote:
In the php feedback form action there is a line that tracks the persons ip adress. With me there is never an adress given.
Thanks Walter. At the moment if the IP address can’t be detected then the resulting value is left blank which isn’t a great solution. I’ll clean this up so that it either omits the whole line (name/value pair in the resulting email) or simply states that the IP address couldn’t be retrieved.
Regards,
Tim.
On 3 Sep 2012, at 15:01, Walter Lee Davis wrote:
Tim, some servers still (in this day and age) run PHP in CGI mode. The environment variables available to PHP in that setting are seriously limited. Not sure if this relates to the OP, but it might – sounds just weird enough to be true.
if (getenv("HTTP_X_FORWARDED_FOR")){
$ip = getenv("HTTP_X_FORWARDED_FOR");
}else{
$ip = getenv("REMOTE_ADDR");
}
Maybe that will help.
Walter
On Sep 3, 2012, at 1:37 PM, Tim Plumb wrote:
Thanks Walter. At the moment if the IP address can’t be detected then the resulting value is left blank which isn’t a great solution. I’ll clean this up so that it either omits the whole line (name/value pair in the resulting email) or simply states that the IP address couldn’t be retrieved.
Regards,
Tim.
On 3 Sep 2012, at 15:01, Walter Lee Davis wrote:
Tim, some servers still (in this day and age) run PHP in CGI mode. The environment variables available to PHP in that setting are seriously limited. Not sure if this relates to the OP, but it might – sounds just weird enough to be true.