session and history.go(-1) don't work
Posted: Sun Jun 05, 2005 3:06 pm
help please
-----------------------pagina1.php-------------------------
<?php
session_start();
if ($_POST['Accion'] == "Insert"){
echo "<script language=\"JavaScript\">";
echo "window.location = \"pagina2.php\";";
echo "</script>";
}
?>
<html>
<head>
</head>
<body>
<form name="form1" method="post" action="pagina1.php">
<input name="Accion" type="hidden" value="Insert">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
-----------------------pagina2.php-------------------------
<?php
session_start();
?>
<html>
<head>
</head>
<body>
<a href="javascript:window.history.go(-1)">forward</a>
</body>
</html>
ok, firt load pagina1.php and click in submit button, that load
Pagina2.php, now when I click in link forward the explorer
end me a error of page not found, whyyyy?????
I realy need you help, thank a lot.
-----------------------pagina1.php-------------------------
<?php
session_start();
if ($_POST['Accion'] == "Insert"){
echo "<script language=\"JavaScript\">";
echo "window.location = \"pagina2.php\";";
echo "</script>";
}
?>
<html>
<head>
</head>
<body>
<form name="form1" method="post" action="pagina1.php">
<input name="Accion" type="hidden" value="Insert">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
-----------------------pagina2.php-------------------------
<?php
session_start();
?>
<html>
<head>
</head>
<body>
<a href="javascript:window.history.go(-1)">forward</a>
</body>
</html>
ok, firt load pagina1.php and click in submit button, that load
Pagina2.php, now when I click in link forward the explorer
end me a error of page not found, whyyyy?????
I realy need you help, thank a lot.