checkout.php:
<form action="success.php" method="post">
<input name="firstname">
<button type="submit">Order now</button>
</form>
success.php:
if ( !empty($_POST)) {
echo "Hello ".$_POST['name'].". Your order was successful"
}
After ordering my customer gets to the success.php
page. I want to prevent now that by clicking on the "back button" of the browser the user gets back to the checkout.php. I wish he would go to my index.php. Is this possible?