...

View Full Version : PHP Redirect



JustinSainton
06-13-2006, 05:45 AM
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.

vinyl-junkie
06-13-2006, 02:13 PM
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.

Beagle
06-13-2006, 03:14 PM
you could use frames

JustinSainton
06-13-2006, 05:38 PM
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.

harsh789
06-13-2006, 05:49 PM
try using following, this will reload new page after 10 seconds.


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

JustinSainton
06-13-2006, 06:00 PM
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.

Chozin
07-01-2006, 01:41 PM
<!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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum