I have a function (myError) that causes a message to pop up whenever you do anything... either, confirming your actions "Email has been deleted!" or telling you that something didn't work "You don't have enough money for that item!"
Problem is, I'm trying to re-design my layout, and the error message shifts everything down when it displays. So, I'm trying to figure out a way to have a space that is just blank when there is no myError message popping up, but that same space is used by the myError when there is text available.
function myError($text, $kill=0){
echo "<br><table class='popmessage' align=center cellpadding=5>
<tr><td><center><b>$text</td></tr>
</table><br>";
if($kill){include('footer.php');}
}
I tried using function_exists after this, but I just can't figure it out. I'm using 'popmessage' and 'blankmessage' per my CSS files. Any advice? I've been struggling with this for awhile! Thanks.