Problem with page redirection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sobha
Forum Commoner
Posts: 56
Joined: Wed Jul 15, 2009 9:08 pm

Problem with page redirection

Post 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?
robnet
Forum Commoner
Posts: 85
Joined: Mon Aug 10, 2009 8:32 am
Location: South East, UK

Re: Problem with page redirection

Post 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.
Post Reply