Re: Problem with header
| From: | Chris Shiflett | Date: | Thu, 25 Mar 2004 04:14:23 +0000 |
| Subject: | Re: Problem with header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181440@lists.php.net to get a copy of this message | ||
--- Phil Matt <pmatt@eznet.net> wrote:
> header("Location:thanks.shtml");
Two errors here:
1. There is a space after the colon.
2. The URL must be an absolute URL.
> But no matter where I place it in the PHP file, I get the error
> message that says "Headers already sent..."
Read this message. It tells you exactly what is wrong and where.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/