You can simply avoid that by buffering the output: <?php ob_start(); // your code // ... ob_end_flush(); ?> or (older versions of PHP): <?php ob_start(); // your code // ... echo ob_get_contents(); ?> Emil Novak, Slovenia, EU -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php