Re: Location header does not work?
| From: | Jason Wong | Date: | Tue, 03 Aug 2004 20:04:44 +0000 |
| Subject: | Re: Location header does not work? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192606@lists.php.net to get a copy of this message | ||
On Wednesday 04 August 2004 03:41, Bing Du wrote:
> ==========
> if ($option == 'content' and $task == 'view' and $id == 159 and $Itemid ==
> 162)
> {
> session_write_close();
> header("Location:
>
> https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&
>id=159&Itemid=162"); exit;
> }
> ==========
>
> Am I doing anything wrong with the Location header?
It looks OK.
> Any help would be greatly appreciated.
Add an else cause:
else { echo "if clause failed"; }
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The reason why worry kills more people than work is that more people
worry than work.
*/