Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 redirecting
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Homer_simpson




PostPosted: 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
Sponsor
sponsor
PaddyLong




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




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




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




PostPosted: Sun Aug 03, 2003 2:25 pm   Post subject: (No subject)

I would advise against using iframes since only IE supports them
Amailer




PostPosted: 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
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: