Computer Science Canada

redirecting

Author:  Homer_simpson [ Sun Aug 03, 2003 1:24 am ]
Post subject:  redirecting

how do i do this
if(true) open a url
else
open another

Author:  PaddyLong [ Sun Aug 03, 2003 1:58 am ]
Post subject: 

<?php
header("Location: http://www.example.com/"); /* Redirect browser */
exit; /* Make sure that code below does
not get executed when we redirect. */
?>

source: http://ca2.php.net/header

Author:  Homer_simpson [ Sun Aug 03, 2003 2:10 am ]
Post subject: 

what if i need it to change a specific frame or i frame...?

Author:  Amailer [ Sun Aug 03, 2003 9:42 am ]
Post subject: 

How about use javascript?
code:

<script language="JavaScript">
function newWindow() {
window.open('LOCATION','FRAME NAME','menubar=yes,scrollbars=yes,resizable=yes');
}
</script>

Author:  PaddyLong [ Sun Aug 03, 2003 2:25 pm ]
Post subject: 

I would advise against using iframes since only IE supports them

Author:  Amailer [ Sun Aug 03, 2003 2:34 pm ]
Post subject: 

Ya iframes are not good...
They limit the space to display your information and etc Confused


: