sapo
Power Member
- Feb 25, 2008
- 510
- 286
Im trying to keep this in my header and just redirect the target iframe below.
like this php redirection will be in the horizantly navigation that it the main page and the body is a iframe.
how do i change the redirection to traget the iframe?
like this php redirection will be in the horizantly navigation that it the main page and the body is a iframe.
Code:
<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(preg_match('/microsoft|window/i', $user_agent)) {
header('Location: http://www.yahoo.com');
} elseif(preg_match('/mac|os x/i', $user_agent)) {
header('Location: http://www.google.com');
} else {
header('Location: http://www.bing.com');
}
?>
<iframe name="donkey" src="http://donkey.com" </frame>
how do i change the redirection to traget the iframe?