Click to See Complete Forum and Search --> : Cookie Help


amitabha
03-08-2003, 04:56 AM
I'm a web designer. I want to put a cookie in a clients machine whenever he click on my website.
And in the forms page of my website i want to set a code so that it will search for the cookie and mail me the cookie info whenever he submits the form along with the other form field info. Currently i'm using formmail.pl to retrieve the form field info. The cookie should have referral site name and the last visit date/time and the no. of visits. on revisit the cookie date should update. Please help me. My job is a stake. I have created necessary p3p plicy for my website to work in IE6.

zapdos900
03-08-2003, 07:42 AM
:eek: WOW!

amitabha
03-10-2003, 10:55 PM
Dave
I'm an idiot in programming so can you plz tell me where to put the code in my htm page
Thankz Amitabha:D

pyro
03-10-2003, 11:01 PM
Originally posted by Dave Clark
You're going to have trouble with the referring site name, because there is no 100% reliable
method for obtaining that information.
I'd disagree with that. There is no reliable way client side. Server side languages are able to get this information reliably.

amitabha
03-10-2003, 11:09 PM
its showing error document.formName is not an object i put the whole code in head

amitabha
03-11-2003, 05:00 AM
Suppose I have put a cookie in a users system namely
somename@mydomain(thats how it looks like in cookie folder)
Now whenever an user submits a form in my forms page i want to check whether that cookie exists if so i want to get this cookie value via mail as i get of other informations in the form via formmail.cgi. if the cookie is not there in his system i don't need the cookie value.
plz give me a javascript hoew to get that cookie info

pyro
03-11-2003, 06:50 AM
Originally posted by Dave Clark
your point is duly noted for the recordAnd, that is all I was looking to do. :p