Developer Support »

Writing to CSV file  (See more user questions)

Hi

That's right. Try the fix. Should be ok.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Saturday, December 13, 2008 2:06 AM
Subject: RE: FormToEmail script


hi charles,

so if I apply the fix you sent me, then in the autoresponse, the users
IP address
will show? ok, that's not what I wanted... if that's how it was designed
then that's
fine. I wasn't sure if I messed up something. but now I know that
because I've
turned on autoresponse, that's why the IP address is left out of the csv
file.
when I was testing earlier, I had not turned on autoresponse, so that's
why the
IP was appearing in the csv.

the IP address is still appearing in the email send to me though when
someone
fills out the form.


-----Original Message-----
Sent: Friday, December 12, 2008 10:36 AM
Subject: Re: FormToEmail script

Hi

I see what is happening here. Because you have enabled the
autoresponse,
the sender's IP address is removed from the submitted data. I added
this in
response to feedback where users didn't want the sender's IP address to
show
in the autoresponse email to them.

You can fix this in one of two ways.

1. You can disable the line that removes the sender's IP address from
the
submitted data. This means it will show in the autoresponse and will
also
show in the CSV file as you desire.

2. You can add a line to the script that will include the sender's IP
address in the CSV file. It will be added after the autoresponse so
that
will not contain it but it will show in the CSV file.

For option 1. Locate this line in your script (line 1190):

if(isset($_REQUEST["Sender's IP address"])){unset($_REQUEST["Sender's IP

address"]);}

Delete it or comment it with two preceding forward slashes.

For option 2. Locate these lines in your script (lines 1253, 1254):

if($csv_file_on_server)
{

Below them, add this line:

$_REQUEST["Sender's IP address"] = $_SERVER[REMOTE_ADDR];

That's it. You might need to make anew CSV file if you don't have the
IP
Address field in the header row of your current file.

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Friday, December 12, 2008 6:07 PM
Subject: RE: FormToEmail script


hi charles, I was just going to ask if it would help if I attached my
script..
I've attached it... thanks

james

-----Original Message-----
Sent: Friday, December 12, 2008 3:50 AM
Subject: Re: FormToEmail script

Hi

I can't think why it would stop working of its own accord. If you
attach
your edited script, I will have a look at it for you.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Thursday, December 11, 2008 8:32 PM
Subject: RE: FormToEmail script


I used a different name for the csv file. still doesn't write out the IP

-----Original Message-----
Sent: Thursday, December 11, 2008 10:04 AM
Subject: Re: FormToEmail script

Try using a new name for the CSV file, creating a new one (rename it in
the
script configuration). Make sure you have enabled the $show_ip option
in
the script. See if that shows it.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Thursday, December 11, 2008 6:11 PM
Subject: RE: FormToEmail script


thanks charles... yes it was weird that it was working, then all of a
sudden it
stopped working... I hope I don't have to go back to the original code
and
start over again as I did do some modifications.

james

-----Original Message-----
Sent: Thursday, December 11, 2008 3:57 AM


Hi

I will need to have a look at that for you. Some people want it, some
don't. I might have changed something. Can't say off the top of my
head,
need to look into it.

That said, I can't think why yours would stop working if it worked
before.

Get back to you later.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Thursday, December 11, 2008 3:43 AM
Subject: FormToEmail script


> Comments: hello, we purchased formtoemail pro. great product! however
i
> have one question. it used to work in that the csv file we create
would
> have a field for ip address of sender. now it doesn't write the ip of
the
> sender to the csv file. however the email has the ip address in there.
why
> is that? please advise.