Forum Moderators: coopster
------------------------
Top page HTML
<?php function mymessage($message) {
echo "
<p align=\"center\"><b>MESSAGE</b></p>
<p align=\"center\">$message</p>
<p> </p>
<p> </p>
<p align=\"center\"><a href=\"javascript:history.go(-1)\">Back to the previous page</a></p>
";
exit();
}
?>
Bottom page HTML
-------------------
I'm trying to call a message based ona condition but if I use exit it doesn't display the bottom html... if I take exit() out it displays all the message one on top of the other and it shows the bottom HTML...
How can I just end the script so it shows the correct message and then shows the bottom html?