Si, has de pasar una vble por get cuando haces el window.location:
Código PHP:
<?php
//inicio session ...
if(isset($_POST['ok'])){
// aca hago los insert en las bdd
?><script>window.location = '<?=$_SERVER['PHP_SELF'] ?>?op=ok';</script><?
}
?>
Luego en el html haces algo como:
Código PHP:
<?php
if ($_GET['op']=="ok") {
?><div>Guardado</div><?
}
else {
?><div>Ha habido un error durante la operación</div><?
}
?>