Author |
Message |
Homer_simpson

|
Posted: Sun Aug 03, 2003 1:24 am Post subject: redirecting |
|
|
how do i do this
if(true) open a url
else
open another |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
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 |
|
|
|
|
 |
Homer_simpson

|
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...? |
|
|
|
|
 |
Amailer

|
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>
|
|
|
|
|
|
 |
PaddyLong
|
Posted: Sun Aug 03, 2003 2:25 pm Post subject: (No subject) |
|
|
I would advise against using iframes since only IE supports them |
|
|
|
|
 |
Amailer

|
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  |
|
|
|
|
 |
|