I'm using it like this:
// check if language has been submitted or edited and insert/update to table
if (isset($_POST['langname'])) {
$langname=$_POST['langname'];
$langcode=$_POST['langcode'];
if (isset($_POST['langid'])) {
$langid=$_POST['langid'];
}
include 'phpinc/submitlang.inc.php';
header('location: ' . $_SERVER['PHP_SELF']); exit();
}
The include outputs text to the browser. This excerpt comes in the middle of the page's code - ie., after displaying all entries in the table. I want to refresh the page so that that list of entries is updated with the newly added/edited entry.
While I'm at it, what I would really like is for the browser to pause for a few seconds before refreshing the page. Is there some function to cause the browser to delay before refreshing?