$Val->SetFields('title','1','string','The title must be between 3 and 100 characters',array('maxlength'=>100,'minlength'=>3));
//$Val->SetFields('alias', '1','string','Please include at least 1 alias, the entire string should be between 2 and 100 characters.',array('maxlength'=>100, 'minlength'=>2));
$Err=$Val->ValidateForm($_POST);
if(!$Err){
$DB->query("SELECT ID FROM wiki_articles WHERE Title='$P[title]'");
if($DB->record_count()>0){
list($ID)=$DB->next_record();
$Err='An article with that name already exists <a href="wiki.php?action=article&id='.$ID.'">here</a>.';