> I have a page that queries the database then uses the data to build an
> excel spreasheet. THat spreadsheet is downloaded according to info in the
> headers. My manager wants to put the page inside of another HTML page to
> make it prettier, but then it breaks because headers are already written
> (it's included in the other HTML page). It works fine on it's own, but
> he really wants it in that page. He wants to know if there is a
> way to trick it into working.
Just set a flag on whether you send the headers or not. Have it default to
sending them...
if(!isset($somevariable))
{ header(...); }
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php