Updated with php function for EditArticle-process.php