Save contact form info with IP address May25 '05

Feedback

# (1 of 4): Timothy » veryraw.com

3 hours, 16 minutes after the fact. (Wed 25 May 2005, 2:48 PM CST)

My biggest issue with your idea is that IP's are not going to be unique to every machine that comes to your site. At the college I work for, we use NAT to assign IP's. So internally my IP is 10.1.1.1 and my boss is 10.2.2.2 by if you were to look at my IP externally we are boss 207.1.1.1 (whatever). So there are cases when it will get confused. Not a huge deal but it would certainly be more irritating than not remembering anything at all.

As far as the issue with sending the cookie before the HTML, I am supposing that when I submit this comment it will go to another page perform some jiggery pokery and forward me back here using the header: location blah method in PHP. If you set the cookie right before you redirect, you won't have a problem. The issue is once you send HTML the header information must already be on the clients computer. So you need to get it there with the header.

# (2 of 4): Matthom

4 hours, 27 minutes after the fact. (Wed 25 May 2005, 3:59 PM CST)

I am supposing that when I submit this comment it will go to another page perform some jiggery pokery and forward me back here using the header: location blah method in PHP.

Well... the jiggery pokery is performed, but once that's done, I redirect the page using JavaScript. Perhaps this is a weak approach, but it is the only way I know how.

Your mention of the PHP header:location method is probably a better approach, and I might try that.

This may help me out with the cookie problem.

Thanks, Timothy.

# (3 of 4): Dale » bluetrait.com

11 hours, 13 minutes after the fact. (Wed 25 May 2005, 10:45 PM CST)

Well you could gzip your pages first. This zips the page, checks for any setcookie info and handles that out first before the page is created. But you probably should fix your code to support cookies...let me know if you need help.∫

# (4 of 4): Kostas » in3d.eu

2 years, 2 months after the fact. (Fri 10 Aug 2007, 1:25 PM CST)

Hello, IP address are not standard: eg. if someone access your page via server proxies or "anonymizers" or with ISPs (Internet Service Providers) that offer simple dial-up connections.. A certain IP may be assigned to different users each time..

RSS feed for comments on this post

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

Return to entry.

matthom is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago. Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.

Contact Matt

Today I think I found a better way to implement the "Save contact form info?" feature.

You are at the feedback permalink page for: Save contact form info with IP address

Read more...