Strangeplant
07-13-2006, 12:48 PM
I need to control the back button - browser history, so when in page2, it goes back to page1, and when in page3 it goes back to page1. (Gotta avoid $_POST a second time in page2). The catch is that page two is not always in the sequence because of a cookie check.
I think it will be allright to make the browser history for page2 = page1 (falsifying the entry). How can I control the browser history?
I've been fighting this problem for almost month, thought it was other things for a while, learned a lot, but just never enough (yet).
~~~~ (new edit)
Just found some code on DD (a Marquee script discussion) that gave me a hint, so I'm now thinking, is this the right way to go? Will it work correctly in all browsers? How about even IE? I found a lot of garbled (to me) discussions of banned sites using this too?
<?php
function _begin_html()
{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<link rel="STYLESHEET" type="text/css" href="lib/style.css">
<title>Password Login ver 0.0.2</title>
<script language="javascript1.1">
<!--
window.location.replace('http://earth.ccny.cuny.edu/noaa/wc.html');
//-->
</script>
<script language="javascript">
<!--
window.location.href = "http://earth.ccny.cuny.edu/noaa/wc.html";
//-->
</script>
</head>
<body>
<?
}
I think it will be allright to make the browser history for page2 = page1 (falsifying the entry). How can I control the browser history?
I've been fighting this problem for almost month, thought it was other things for a while, learned a lot, but just never enough (yet).
~~~~ (new edit)
Just found some code on DD (a Marquee script discussion) that gave me a hint, so I'm now thinking, is this the right way to go? Will it work correctly in all browsers? How about even IE? I found a lot of garbled (to me) discussions of banned sites using this too?
<?php
function _begin_html()
{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<link rel="STYLESHEET" type="text/css" href="lib/style.css">
<title>Password Login ver 0.0.2</title>
<script language="javascript1.1">
<!--
window.location.replace('http://earth.ccny.cuny.edu/noaa/wc.html');
//-->
</script>
<script language="javascript">
<!--
window.location.href = "http://earth.ccny.cuny.edu/noaa/wc.html";
//-->
</script>
</head>
<body>
<?
}