Topic awaiting preservation: Javascript shopping cart w/cookies & PHP??? |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: hoboken nj |
posted 02-22-2002 04:32
Ok, I'm making a shopping cart with Javascript....the thing is, the existing form mailer i have is php...the javascript cart uses cookies to store the info...can I access these same cookies with PHP to mail the final form? If I could convince the business owner to get a secure server, I could just continue on with the Javascript to do the final ordering part, but at the moment, the PHP form is the way... |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 02-22-2002 08:06
You should be able to access cookies set by JavaScript from PHP ($HTTP_COOKIE_VARS), only thing that you should look for is path variable which was used when setting cookie from JavaScript (if it's even used), because PHP script must be located somewhere inside that path in order to see that cookie... |