What have you tried so far? I’d probably put the message in a session variable and then look for that in the dashboard code.
You’ll probably have trouble with that header redirect to dashboard.php because you’ve already sent output to the browser just before it. You should be seeing “headers already sent” errors unless you’ve enabled output buffering. If you have, echoing something immediately before a page redirect is a bit pointless.