Thanks all I manged to fix it. The headers were already sent by a validation class I was using and needed a bit of output buffering to get it working. R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php