Click to See Complete Forum and Search --> : help problem with redirect


damon2003
04-10-2005, 05:00 PM
hi,
I have a page with a form that gets submitted to my redirect page that chooses what the next page should be. The first page passes some query strings to the second, the second page uses these to query the database and then attemp to redirect to an appropriate page. However its not yet working cos it says headers already sent. I know you cant write html before using the header location, but I am not, just querying a database,

is there a solution to this?

thanks a lot for any replies

bokeh
04-10-2005, 05:09 PM
Make certain that there is absolutely no white space before the <?php tag.
Start your script like this:

<?php
ob_start();

and finish it like this:

ob_end_flush();
?>