develooper Front page | perl.beginners | Postings from December 2002

cookies, cant reach it from $ENV{'HTTP_COOKIE'}

Erik Browaldh
December 9, 2002 06:01
cookies, cant reach it from $ENV{'HTTP_COOKIE'}
Message ID:
Hello again!

going from one cgi-scripts to another and I cant get the cookie?
I write some of the code here.

cgi-script 1:
use CGI qw(:standard);

$name1=param('name'); # get the name from a fill out form

$cookie1=cookie(-name=>$name1 ....);

print "Content-Type:text/html\n\n";

then I open another html-document, (lets call it "2nd.html")
and print the cookie-name out.
This part is working!
but from this "2nd.html" I have a link <a> 2nd.cgi </a>

code of cgi-script 2:
use CGI qw(:standard);


print $cdata; #this doesnt work!!

Anybody who can help me?

thanks in advanced!

 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About