Help With PHP. Will $ Pay !

Status
Not open for further replies.

imhill

Junior Member
Joined
Jun 25, 2009
Messages
146
Reaction score
8
All right peeps. I need some help with a PHP (i think) code.
For somene who knows the language it may not take a minute but i have no more than a clue about it.
I need to append information contained in cookie (a prosper202 subid) to the url so a javascript on the next page will pick that up.

I already have the javascript and i'll we need to do is to define the variable value so everything comes up together...
Let me know if you're interested.
Thank you !
 
So you already have a cookie on the clients computer and you want to read it in PHP to use it in a redirect or link ?

In this case you might just want to do this:
var_dump($_COOKIE);
This will dump all the cookies on the website, so you can see if it's there and if it is named as you expected, then you can work with it like with any POST or GET variable you know.

If you want to create a cookie on the clients browser from within php you can do that using setcookie() (look on php.net for examples)
Alternatively you can output javascript functions to create a cookie.
 
Thanks for your reply justone,

As soon as someone arrives at my site the cookie is dropped. Then he goes to another page ( on the same site) where the java script will pick the info from the url.
Send me a PM with you IM id so i can show you the entire thing. Think it will be easier...
Thanks again
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top