die or exit will certainly terminate the script at that point, and that's what they are designed to do. The real question here, I think, is whether you actually want to flat out terminate at that point, or do something more "graceful". If you die, nothing else will be output, which may mean you end up outputting invalid [X]HTML. Or the user may not see any output at all, which is certainly not user friendly.
A pattern I sometimes use is something like:
$errors = array();
if(trim($_POST['name']) === '')
{
$errors[] = "Name is required.";
}
if(trim($_POST['password']) === '')
{
$errors[] = "Password is required.";
}
if(count($errors))
{
echo "<p class='error'>" . implode("<br />\n", $errors) . "</p>\n";
}
else
{
// process the form data here and output result
}