Thanks. How can I tell if output buffering is turned on? I have some problems before with setting the cookies and so I put all the cookie code first and it was OK on my php4 server. But I will go through the code and check to make sure there are no echo statements before the headers.
I have changed the phpinfo to just show this instead at the bottom of the page:
<p><? echo "POST variable:".$_POST["submit"]; ?></p>
This still shows when I go back to the page even though I didn't click on 'login' which is why I think the POST variables are still there. But if I wait about 10mins then it isn't there.
The site is going to be redesigned so I will make sure that it is written in xhtml as I change it but thanks for telling me about that, I didn't know it was a legal requirement.