I have this for my register form that if it exists die which falgs up a new blank page that displays the message but i just want the error to stop the script and appear on the form.
if(usernameTaken($_POST['user'])){
$use = $_POST['user'];
die("Sorry, the username: <strong>$use</strong> is already taken, please pick another one.");
}