I am trying to set up a PERL script that prints a web page to the screen as well as setting a cookie up on the client. When I try to do this with the following code:
print "Set-Cookie: id=$id\;";
<th bgcolor=navy colspan=4><center><font color=yellow>The Following was added to
your shopping basket:</font></center></th>
And so on....
It ends up setting the cookie, but then prints all the HTML code as plain text. Anyone know why this is happening and how to prevent it?