Forum Moderators: coopster
header('Set-Cookie: $_COOKIE["the_cookie"]');
header("Location: [the_path_to_page.cgi");...]
but I really want to do this with include().
Is there a way?
You need to send the data from the previous page and save it as a cookie or send it as post data or some such thing. Only then is it available to the page currently being generated.
Tom
I can grab the cookie and echo it with the
global $_COOKIE["the_cookie"].
Okay, I misunderstood a bit what you were doing. I thought you were setting the cookie in the same script that was calling the CGI.
seeing PHP modual as the client and not the user.
? You mean it's seeing PHP as the server and not the client?
The problem is when that CGI is requested it sees the PHP sever as the client and not the acctual client.
I have tried seting variables before include but this still will not work.
I also tried something like this include($_COOKIE['name'] . "/path/prog.cgi"); but this does not work.
thanks for your help