Outputting something based on the presence of post variable in admin screens

exit; or store in $_SESSION. then on each page load check is_admin() and if your session var is set, then if so print the message, and remove the message from $_SESSION.