Gossamer Forum
Home : General : Perl Programming :

PHP redirect + target?

Quote Reply
PHP redirect + target?
I am using a redirect in php using the header function, but I also want to specify a target attribute for the redirect...

...any idea how?

Cheers,
Regan.

----------------------------------

// Redirect the user
if ( $result ) {
header("Location: shop_index.php?PHPSESSID=$PHPSESSID");
exit;
}


Quote Reply
Re: PHP redirect + target? In reply to
Ok, I ain't no PHP Programmer, so I'm not sure if this is correct. I found this at the PHP offical website (http://www.php.net). Someone there says that you use;

header("Location: shop_index.php?PHPSESSID=$PHPSESSID Window-target: _top");

I have no idea if this works, but hey, its worth a try Smile

Andy

webmaster@ace-installer.com
http://www.ace-installer.com