If you don't to put the head function at the top or you want have a refresh command inside a If statement u could use a javascript...
<SCRIPT language="JavaScript">
<!--
function redir()
{
window.location="index.php";
}
setTimeout("redir()",5000);
//-->
</SCRIPT>
5000 being milliseconds so if you want 3 seconds put 3000 instead of 5000