if (empty($form["name"])) { $error["name"] = "*"; $message["name"] = "Required field!"; } else if ($duplicate = duplicate_name($form["name"]) == "T") {
// This seams to be an assignment of either true or false to duplicate(???) // e.g. $duplicate = (duplicate_name($form["name"]) == "T") // Hence $duplicate seams to be assign either true or false (1/0) and when you // do this will never trigger the rest of the mutual exclusions, since you // only check for weather $duplicate is "T" or "S". $error["name"] = "*"; $message["name"] = "Screen name already used!"; } else if ($duplicate == "D") { $error["name"] = "*"; $message["name"] = "Database error - Please try again in a few moments!"; } elseif ($duplicate == "S") { $error["name"] = "*"; $message["name"] = "Server error - Please try again in a few moments!"; } //Anders - as always totally ignorant about PHP syntax -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php