| Topic: |
DEVELOP > Dreamweaver |
| User: |
"Michael Fesser" |
| Date: |
17 Apr 2005 10:42:53 AM |
| Object: |
Re: Why oh why (PHP) |
.oO(Kim)
Header("Location: index.php");
The URL has to be absolute, scheme (http) and hostname are missing.
Micha
.
|
|
| User: "Kim" |
|
| Title: Re: Why oh why (PHP) |
17 Apr 2005 12:43:03 PM |
|
|
Hi Micha,
Thanks. I'll fix it. But it works as it is now!!
Kim
Michael Fesser wrote:
.oO(Kim)
Header("Location: index.php");
The URL has to be absolute, scheme (http) and hostname are missing.
Micha
.
|
|
|
| User: "David Powers" |
|
| Title: Re: Why oh why (PHP) |
17 Apr 2005 01:21:44 PM |
|
|
Kim wrote:
Thanks. I'll fix it. But it works as it is now!!
Yes, it will work in just about every browser, I think. But Micha's
right, it should be a full URL. I think it has something to do with
preserving the correct history in the browser (so the back button knows
where to go). There's a useful piece of code on the PHP manual page that
could be used as a snippet to create the correct path:
http://www.php.net/manual/en/function.header.php
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
http://computerbookshelf.com
.
|
|
|
| User: "Kim" |
|
| Title: Re: Why oh why (PHP) |
18 Apr 2005 07:30:58 AM |
|
|
Excellent. Thanks David.
David Powers wrote:
Kim wrote:
Thanks. I'll fix it. But it works as it is now!!
Yes, it will work in just about every browser, I think. But Micha's
right, it should be a full URL. I think it has something to do with
preserving the correct history in the browser (so the back button knows
where to go). There's a useful piece of code on the PHP manual page that
could be used as a snippet to create the correct path:
http://www.php.net/manual/en/function.header.php
.
|
|
|
|
|
|

|
Related Articles |
|
|