Author |
Message |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Sun Aug 03, 2003 1:24 am Post subject: redirecting |
|
|
how do i do this
if(true) open a url
else
open another |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
PaddyLong
|
Posted: Sun Aug 03, 2003 1:58 am Post subject: (No 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 |
|
|
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Sun Aug 03, 2003 2:10 am Post subject: (No subject) |
|
|
what if i need it to change a specific frame or i frame...? |
|
|
|
|
![](images/spacer.gif) |
Amailer
![](http://compsci.ca/wiki/images/1/19/Avatar.jpg)
|
Posted: Sun Aug 03, 2003 9:42 am Post subject: (No subject) |
|
|
How about use javascript?
code: |
<script language="JavaScript">
function newWindow() {
window.open('LOCATION','FRAME NAME','menubar=yes,scrollbars=yes,resizable=yes');
}
</script>
|
|
|
|
|
|
![](images/spacer.gif) |
PaddyLong
|
Posted: Sun Aug 03, 2003 2:25 pm Post subject: (No subject) |
|
|
I would advise against using iframes since only IE supports them |
|
|
|
|
![](images/spacer.gif) |
Amailer
![](http://compsci.ca/wiki/images/1/19/Avatar.jpg)
|
Posted: Sun Aug 03, 2003 2:34 pm Post subject: (No subject) |
|
|
Ya iframes are not good...
They limit the space to display your information and etc ![Confused Confused](http://compsci.ca/v3/images/smiles/icon_confused.gif) |
|
|
|
|
![](images/spacer.gif) |
|