The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Plz solve my warnning.

Hi Every body,
I have wasted 2 days to solve this problem.plz help me.
It shows warning as "Warning: Cannot modify header information - headers already sent by (output started at d:\inetpub\wwwroot\total\trad.php:1) in d:\inetpub\wwwroot\total\trad.php on line 27"
Here conn.php is my connection file which i have included.
How can i solve my problem?
Advance thanks to you.
code is :

1. put your code between the code or php tags
2. dont post the whole page, post only your php codes.
3. Indicate which line is producing the error. You cant expect anyone to try and locate line #27 and then replying.

Also, am i correct in assuming that conn.php does not output anything?

Try to remove all spaces in 'conn.php' outside php-tags (no spaces, no new lines etc.).
And before <?php in 'trad.php' too.

There is no space in conn.php.but it shows and error.If u look warnning that is related only header() not modified.Is my code is wrong anywhere?What should be the wright one?I am loosing my confidence hour by hour.

1. put your code between the code or php tags
2. dont post the whole page, post only your php codes.
3. Indicate which line is producing the error. You cant expect anyone to try and locate line #27 and then replying.

Also, am i correct in assuming that conn.php does not output anything?

Hallo Sir,
sorry,Now i have changed the color of form in html.conn.php is a connection page which connect to mysql and database nothing.
Plz

Not sure if it makes any real difference but I always use " around Location

it will surely make a difference in the given example because with single quotes PHP won't substitute the $a with it's value. In order to accomplish that ujjwal would have to use double quotes. Without a variable within the URL it would make no difference whether you are using single or double quotes. And this will certainly not solve the original problem.