I am trying to solve a reload (duplication) problem with my form and I've been trying to redirect to a receipt page.
But I keep getting this error:
Warning: Cannot modify header information - headers already sent by (output started at db.inc:36) in example.8-4.php on line 26
I am not familiar with headers. What can I do to solve this problem?
Cannot modify header information
Moderator: General Moderators
Remove any data being sent before the headers, this includes the most common error:
That new-line before the PHP tag will cause the error.
Code: Select all
<?php- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
and if your truley lazy and dont read those
on the 1st line of the script your running. but, as fyed would say "this is a bandaid way, dont do this" but it does work
Code: Select all
ob_start();- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Stop mentioning the bandaidshiznatix wrote:and if your truley lazy and dont read thoseon the 1st line of the script your running. but, as fyed would say "this is a bandaid way, dont do this" but it does workCode: Select all
ob_start();
Just kidding but you know..