--- adwinwijaya <[EMAIL PROTECTED]> wrote:
> why the php didnt stop processing after sending the header? because
> in my logic ... after sending the (redirect) to another page .. the
> process shall be stopped
This might make sense to you, but only because you're thinking of header()
as a redirect
adwinwijaya wrote:
Hello php-generaler's ,
I have a script like this :
if($foo == 'something'){
header('Location:to_another_page.php') ;
}else
{
do another thing in here
}
header('Location:to_previous_page.php');
I got a problem ... when $foo == 'something' .. it
adwinwijaya wrote:
--> ok guys ... thanks for your answer and my another question
--> why the php didnt stop processing after sending the header ?
--> because in my logic ... after sending the (redirect) to another
--> page .. the process shall be stopped and thanks for your
--> advise .
Hello adwinwijaya,
Thursday, February 12, 2004, 11:11:48 AM, you wrote:
-->> because in my logic ... after sending the (redirect) to another
-->> page .. the process shall be stopped
In PHP's logic however, it doesn't stop :)
(Unless you tell it to by either using an exit() call or just making
Hello Chris,
Thursday, February 12, 2004, 5:57:55 PM, you wrote:
CS> Nope. As others have pointed out, your Location header is improperly
CS> formed.
CS> However, your immediate problem is that, regardless of whether $foo ==
CS> 'something', you *always* set the Location header to to_previous_pag
--- adwinwijaya <[EMAIL PROTECTED]> wrote:
> if($foo == 'something'){
> header('Location:to_another_page.php') ;
> }else
> {
>do another thing in here
> }
>
> header('Location:to_previous_page.php');
>
>
> I got a problem ... when $foo == 'something' .. it wont redi
On Thu, Feb 12, 2004 at 05:20:29PM +1100, adwinwijaya wrote:
> Hello php-generaler's ,
>
> I have a script like this :
>
> if($foo == 'something'){
> header('Location:to_another_page.php') ;
> }else
> {
>do another thing in here
> }
>
> header('Location:to_previous_
Hello php-generaler's ,
I have a script like this :
if($foo == 'something'){
header('Location:to_another_page.php') ;
}else
{
do another thing in here
}
header('Location:to_previous_page.php');
I got a problem ... when $foo == 'something' .. it wont redirect me
8 matches
Mail list logo