<html> <body> <h4> Tony's Check for duplicate content gizmo! </h4> <form action="process.php" method="post"> Original text: <input name="original" type="text" /> New article: <input name="new" type="text" /> <input type="submit"/> </form> </body> </html> <?php $original=$_POST ['original']; $new=$_POST['new']; $originaltext=array (0=>$original); $newtext=array (1=>$new); print_r(array_diff($originaltext, $newtext)); ?>