Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: PHP Redirect

  1. #1
    Regular Coder
    Join Date
    Oct 2005
    Location
    Newberg, Oregon
    Posts
    252
    Thanks
    1
    Thanked 0 Times in 0 Posts

    PHP Redirect

    I posted this in the javascript section, but no luck there. Maybe PHP is the way to go?

    I have a situation. I am designing a site for a realtor. He wants it fairly well integrated with his corporate site. On the corporate site, if you go to his page, then go anywhere else on the site, he is the listing agent you see for anything. This is good.

    That being said, he wants to incorporate certain features like a Property tracker page, and Listings page from his corporate site into his regular site. To still have him be the listing agent, he would first have to have the user go to his page, then the appropriate page, be it listings or tracking or whatever.

    I am not sure how to do this. I know how to do redirects on pages I can access, but not on pages I cannot change or modify. Perhaps Javascript can help?

    Basically, click on a link, go to one page, for a split second, and then go to the actual link. That's what I am trying to do.

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,088
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Quote Originally Posted by JustinSainton
    I am not sure how to do this. I know how to do redirects on pages I can access, but not on pages I cannot change or modify. Perhaps Javascript can help?
    Can't be done. You cannot change the way a web page works unless you modify the page.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    Senior Coder
    Join Date
    Jul 2005
    Location
    New York, NY
    Posts
    1,084
    Thanks
    4
    Thanked 19 Times in 19 Posts
    you could use frames

  • #4
    Regular Coder
    Join Date
    Oct 2005
    Location
    Newberg, Oregon
    Posts
    252
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I'm really not incredibly profcient with either PHP or javascript, but I suppose the basic idea is this.

    Have one link that when clicked on, loads the initial page in an invisible frame on my page, and once that page loads, opens up another page in a new window. Now, I KNOW there must be a way for javascript to do that.

  • #5
    Regular Coder
    Join Date
    May 2006
    Posts
    101
    Thanks
    0
    Thanked 1 Time in 1 Post
    try using following, this will reload new page after 10 seconds.

    Code:
    <META HTTP-EQUIV=Refresh CONTENT="10; URL=http://other.page.url/">

  • #6
    Regular Coder
    Join Date
    Oct 2005
    Location
    Newberg, Oregon
    Posts
    252
    Thanks
    1
    Thanked 0 Times in 0 Posts
    That actually wasn't the best way to go for my situation. Silly me, making things harder than they had to be. I didn't end up needing either PHP or Javascript. I just had an iframe set at 1px height, and visibility hidden on the home page, and when anyone goes to his corporate site through any of the links on this site, he's right there with them. Yay for simple html.

  • #7
    New Coder
    Join Date
    Jun 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    is this what you wanted?

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html><head><title>OrangeBILL / System Messages / Join</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="language" content="en-us">
    <meta name="Robots" content="index, nofollow">
    <LINK href="name.css" rel="stylesheet" type="text/css">
    </head>
    <script language=JavaScript>
    self.moveTo(0,0);
    self.focus();
    setInterval("self.focus()",6000);
    function closeWin()
    { if ( document.location = "your.php or .html");};
    window.setTimeout("closeWin()", 4000);
    </script>
    <!-- you body etc. after this for example:-->
    <body bgcolor="#fffffff" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
    <tr valign="center">
    <td class="txt" align=center><br><b>Thank you.</b><tr valign="center">
    <td class="txt" align=center><br><b>You are being Redirected</b><tr valign="center">
    <td class="txt" align=center><br><b>Please Standby!</b><br><br><br><br><br><br><br><br></td>
    </tr>
    </table>
    </body>
    </html>
    make a web page like this: maybe?. just a suggestion


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •