Hello, I have a script that is acting funny.

I have this line in it:

$addtocart_co->header(-cookie=>$pid_cookie);

Does that line not handle the content type as well?

I get "premature end of script headers" with just that.

But if I add this line:

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

It works, although that line is printed on the actual page.

I thought the first line handled content type too, but I guess I was wrong?  What do I 
need to add to have this work the way I want?

Can someone help a confused newbie?

Thanks,

-Dave

Reply via email to