Possible with addition
Instead of an alert message would it be possible do what you suggested along with opening a div at the top of the page using something like...
<?php if(isset($_GET['sent']) && $_GET['sent'] == "false") { ?>
<div class="confirm">Please check your forms for errors.</div>
<?php } ?>
Thanks