in reply to Re^4: Perl CGI Cookies "Content-Type:text/html" showing at top of html.
in thread Perl CGI Cookies "Content-Type:text/html" showing at top of html.
I must print the cookie into the h....and for the html to work correctly I need
Kindly go back to the manuals I linked :)
You can only print the header once, and once only, this is the rule of HTTP, no way around it
Instead of broken logic
use correct logic for print headers only onceif ( blah ){ print header( and cookie ); } print header;
if ( blah ){ store cookie in variable } print header ( and $cookie )
|
|---|