Jump to content

Archived

This topic is now archived and is closed to further replies.

alexcrosson

Warning: Cannot modify header

Recommended Posts

This is the error I get:
[b]Warning: Cannot modify header information - headers already sent by (output started at /home/totallyc/public_html/login/users.php:18) in /home/totallyc/public_html/login/add_user.php on line 16[/b]
Here is my code starting at line 16:
[code]header("Location: users.php");[/code]
I need to redirect after a user has been added and i'm having trouble doing it.

Share this post


Link to post
Share on other sites
you have output some html or whitespace before that line of code gets executed....

headers must be sent before you do that.

Share this post


Link to post
Share on other sites
are you outputting anything on purpose?

sometimes if there is an empty line after the [color=blue]?>[/color] and the end of the file is creates this problem

does that help?

cheers,
tdw

Share this post


Link to post
Share on other sites
You have output being made around line 18 in users.php

Post lines 13 to 23 here from users.php

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.