Ok, Here's my problem:
I've got this simple script (see below) and I want to get it to work on my site.
<html>
<title>cookie</title>
<?php
if (!$myname) {
print "What is your name? ";
print "<FORM ACTION=\"$PHP_SELF\" METHOD=\"GET\">\n";
print "<INPUT NAME=\"myname\" SIZE=20>\n";
print "</FORM>";
exit;
}
setcookie("myname", $myname);
?>
</html>
I get the following error when I type my name and press "enter":
Warning: Cannot add header information - headers already sent by
(output started at /home/httpd/vhosts/
mikeandthepurpledragons.org/httpdocuments/myfolder/cookiesarebitter.php:3) in /home/httpd/vhosts/mikeandthepurpledragons.org/
httpdocuments/myfolder/cookiesarebitter.php on line 13
Whats going on?