in reply to Premature end of script headers issue

A few things.
1) Why are you looping across a return set for the page generation? i.e. could the loop run more than once?
2) It may be worth using CGI's header routines to set the cookies etc.
3) If you database connection fails you may have a blank page. Try printing $dbh->errstr
  • Comment on Re: Premature end of script headers issue