I want code to display error message, on same time remove page content
EG.
<?
echo 'welcome';
if (login==0)
{
error("you can't access to this page");
}
content, content, content, content, content, content, content, content, content, content
ect.......
?>
Output
you can't access to this page
the exemple remove all content but it keep error("you can't access to this page");