Sorry, I didn't quite follow you, but I wish I did. If you, whoever you are, get a chance, can you expound a bit? I can't tell if I was doing it right or if you were suggesting another way. Thanks.
—Brad "A little yeast leavens the whole dough."
Comment on Re: Re^3: Not able to set and retrieve cookie
He was telling you that when you do
print $query->header(-cookie=>$newcookie);
Thats already going to print out the content-type so you don't need the following line at all.
print "Content-type: text/html\n\n";