Page 1 of 1

Problem with page redirection

Posted: Thu Aug 13, 2009 4:14 am
by sobha
//form1.php

<form action="form2.php">
<input type="submit">
</form>

//form2.php

<script>
function test()
{
document.frmform3.submit();
}
</script>
</head>
<body onload="test();">
<form id="frmform3" name="frmform3" action="form3.php" method="post">
</form>
</body>

This takes me to the form3.php.But when i click on IE back button i cannot see the contents of form2.php.It shows page cannot be displayed msg.Any solutions to solve this problem?

Re: Problem with page redirection

Posted: Thu Aug 13, 2009 5:25 am
by robnet
Most (/older) browsers will not remember info from a form that has been submitted.

You may have to think about saving the post/get variables into session variables and retrieving it (if it exists) when the pages load.