The code below creates an error message and then displays it if needed. When the messge is displayed though, its diplayed along with all the other stuff on the screen at the time. Is there a way to blank the page first, before displaying the message.
<?
//If session expires say something
if ($surname == ""){
makeform("Your session has expired. Please re-login.");
}
//this function shows the form.
function makeform($errormessage){
//print the error message
echo "<font color=\"#FF0000\"><strong>$errormessage</strong></font><br>";
?>
Greatful for any help, cheers.