
December 4th, 1999, 03:48 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
You can use javascript. the following will load up a new page when it is encountered:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
location.href="new_page.htm"
[/quote]
If you are within some PHP code, you'd have to get out and process (or echo) this javascript commands within some <script> tags. This example might be kind of long, but I know it works. you can adjust it as need be.
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<?php
if ($var == true) {
?>
<script language="javascript">
location.href="new_page.htm";
</script>
<?php
}
?>
[/quote]
|