Ahah!
Thanks guys, it works :-) (PHP3, I had a blank line)
I do have another slightly harder question though.
I want to do one of two things.
1. Set a cookie IF the username and password given are correct
2. Edit a cookie depending upon username and password.
Now, #1 has problems as I can't set a cookie in the middle of a file, so I tried using include and require linking to a file with simply
<?php
setcookie ();
?>
But I get the same error that I've got other stuff in. So the only way I can see is to open another page, instead of including one, how I can do this I have no clue.
Same with #2, not clue how to do this. I got a book with has a chapter on CGI which is where I found out pretty much how to set cookies, but it doesn't go into much detail, and none of the many sites I've tried seem to have any details.
Thanks for any help on this (harder) subject!