Forum Moderators: coopster
} else { $errormessage = "ERROR: Password can only be alphanumeric.<br>" . $errormessage; }
} else { $errormessage = "ERROR: Username can only be alphanumeric.<br>" . $errormessage; }
} else { $errormessage = "ERROR: Passwords do not match.<br>" . $errormessage; }
} else { $errormessage = "ERROR: Please fill in all required fields.<br>" . $errormessage; }
if all of the statements were false, it should save $errormessage = "ERROR: Password can only be alphanumeric.<br>ERROR: Username can only be alphanumeric.<br>ERROR: Passwords do not match.<br>ERROR: Please fill in all required fields.<br>"
as always, i'm open to suggestions on how to make this script more efficient...
THANKS
//This will print it out to the screen
$errormessage=nl2br($errormessage);
echo $errormessage;
if ($errors) {
echo "<P>" . implode ("<br>\n", $errors) . "</P>";
} else {
# no errors
}