[snip] I have one more than one occasion run into the problem of "headers already sent" when I was using the header function in combination with cookies. What is the right way of doing it? <?php header ( your thinggies here); setcookie(blabal);
or the other way round? can I do php routines between these consecutive calls for header and cookie? I know that all headers must be sent before other output but what is the catch here? [/snip] Well, if you send headers first you cannot send cookies, if you send cookies first you cannot send headers. But you can use the ob functions to fix it. Start here http://www.php.net/manual/en/function.ob-start.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php