Originally posted by webnewone
So there's no way of stopping a refresh>resubmit scenario then?
Yes, there is. You will need to have your form submit to some script which processes the form data but has no output. That script will then need to redirect to another page (via header('Location: blah.php') or javascript redirects) that tells the user what happened. For example:
# page1.html
<form action="form_process.php" method=POST>
<input type=text name='blah''
<input type=submit value="Go">
</form>
<?
# form_action.php
$blah = $_POST['blah'];
// process $blah
header('Location: page2.php?result=Good');
?>
<?
# page2.php:
echo $_GET['result'];
?>
When the user submits the form on page1.html, they wind up on page2.php. If they refresh this page, the same output is displayed and nothing is processed again. HTH.