thanks, this is much appreciated
I actually ended up using the following, which seems to be working OK:
if (!$login_result)
{
echo "Sorry, LogIn failed, please try again later";
exit;
}
else
{
echo "Please wait...<br>";
echo('<META Http-equiv="refresh" Content="0; Url=Index.html">');
}