06-02-2008, 04:23 PM
|
#16 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 87
Thanks: 49
|
I have the exact same error. I know headers should be sent out before anything else on the page, but the way my page is structures and designed, I need it to be half way through my code. I have the following after a form:
PHP Code:
//Cary out the following query if the person updates cart if (isset($_POST['update_cart'])) { //Update quantity $update_query = 'UPDATE cart SET pass_quantity = "'.mysql_real_escape_string($show_quantity).'" WHERE pass_cdID = '.$stored_cdID; mysql_query($update_query); //Refresh page and display the following header('Refresh: 1; url=cart.php'); echo ("Cart Updated!"); }
And get the same error. Is there any other way to do what I'm doing other than header?
|
|
|
|