You are here: Re: want to use php to alternate links « PHP Language « IT news, forums, messages
Re: want to use php to alternate links

Posted by Peter Van Hove on 06/02/05 18:21

I magaged to get something working here in a test setup.
I do what I explained. From .html I load a .php page (_blank) on an
hyperlink click

The .php script then loads the new page this way (after deciding on the
$newurl) :
You'll see three ways, first the java attempt, then the refresh attempt and
finally a click by the user if previous failed.

Somehow of course I feel that this is overhead.
It would be nice if via php I could do something similar, meaning load new
content in the page.


<html>

<script type="text/javascript">
self.location.replace("<?php echo $newurl ?>");
</script>

<head>
<meta http-equiv="refresh" CONTENT="1;url=<?php echo $newurl ?>">
<title>blablabla ... </title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"></head>

<body bgcolor="#FBFBFF" link="#0000CC" vlink="#0000CC" alink="#0000CC"
text="#0000CC">
<p align="center"><font color="#0000CC" face="Arial, Helvetica,
sans-serif"><big><strong><br>
</strong><font size="2">Your browser will automatically link to <a
href="<?php echo $newurl ?>">the
new page</a></font></big></font></p>

</body>

</html>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация