[Pro] No ip in results php feedback form action

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.

Anyone will try me to explaine?

thank you in advance.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

even the captcha code the person typed) are fine.

PHPFF action doesn’t have an option for a captcha - is it definitely that action you are using.

Can we see it online somewhere.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No it has not but I managed to put in the “secureimage” script manualy (http://www.phpcaptcha.org/).

contact-page:
http://vakantiezuidfrankrijk.com/contact.php

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=


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Does it work without the captcha?

This is difficult to diagnose without the contact-go.php file

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Download and try the latest version of the Action;
http://www.freewayactions.com/product.php?id=019

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.


FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thank you, i’ll give it a go.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

Walter

On Sep 3, 2012, at 6:24 AM, Tim Plumb wrote:

Download and try the latest version of the Action;
FreewayActions.com | PHP feedback form

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.


FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.


Experienced Freeway designer for hire - http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s the IP-sniffer from FreeCounter:

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.


Experienced Freeway designer for hire - http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’m sure it will. Thanks.

On 3 Sep 2012, at 18:47, Walter Lee Davis wrote:

Here’s the IP-sniffer from FreeCounter:

if (getenv(“HTTP_X_FORWARDED_FOR”)){
$ip = getenv(“HTTP_X_FORWARDED_FOR”);
}else{
$ip = getenv(“REMOTE_ADDR”);
}

Maybe that will help.


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options