Jump to content

[SOLVED] Is it really that hard to redirect after header has been declared?


DamienRoche

Recommended Posts

I have searched for too long now. I'm just not getting ANY answers.

 

I know you can redirect using the header() function...but what if you want to redirect under and if statement.

 

What about:

 


if($var =="PLEASE REDIRECT!!!"){

header(blahblah);  ////redirect dammit!

}

 

Can anything replace header() there that will actually redirect the browser?

 

Any help is greatly appreciated. Thanks.

After all that it was stupid config on my server...AGGGHHHHHH...I've been nagged by this issue for months, I ask for help and *yet again* I sort it out 5 minutes later.

 

Thanks any way Mchl.

Archived

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

×
×
  • Create New...

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.